Commit Graph

1563 Commits

Author SHA1 Message Date
Andrew Grieve edb35b5a6d Tweak the online bridge to not send excess online events.
It does so by having the JS tell it when online events have fired.
(cherry picked from commit 166b35bc6c)
2013-10-22 15:16:07 -04:00
Andrew Grieve 64c617d8ab Log WebView IOExceptions only when they are not 404s
(cherry picked from commit 5451320350)
2013-10-22 15:15:45 -04:00
Andrew Grieve bcccb0c620 Fix data URI decoding in CordovaResourceApi
It was not URI-decoding first, and so was broken for non-base64-encoded
URIs.
(cherry picked from commit 4e1aa8aa59)
2013-10-22 15:14:36 -04:00
Andrew Grieve 5814d666ab [CB-3384] Fix thread assertion when plugins remap URIs
(cherry picked from commit b915aafb5b)
2013-10-22 15:11:42 -04:00
Andrew Grieve 53e3a12441 [CB-3384] Use the ExposedJsApi to detect webCore thread instead of IceCreamCordovaWebViewClient.
Also removes a debug log statement.
(cherry picked from commit 6fe18ae0ab)
2013-10-22 15:11:15 -04:00
denis dd770ef303 Prevent NPE in case webview is lately initialized
(cherry picked from commit a9ebf50b86)
2013-10-22 15:09:51 -04:00
Andrew Grieve 8b3fa5c91e [CB-3384] Reworked UriResolver into CordovaResourceApi.
Changes were made after trying to use the API for Camera, FileTransfer, Media.
The main difference is separating the concept of URI remapping from the read/write helpers.
(cherry picked from commit 77e9092108)
2013-10-22 15:09:15 -04:00
Andrew Grieve 43bf47ea7b [CB-3384] Add a length getter for UriResolver. Change from interface -> abstract class.
Thinking here is that we can maintain compatibility going forward with a
base class as opposed to interface by having new methods on it have
default implementations.
(cherry picked from commit 990d91360d)
2013-10-22 15:05:15 -04:00
denis 4be84fbf12 Let subclasses override focus behavior
Signed-off-by: Joe Bowser <bowserj@apache.org>
(cherry picked from commit 55865a4f1d)
2013-10-22 15:04:52 -04:00
Andrew Grieve e9b46e5cf6 [CB-3384] Make UriResolver assert that IO is not on the UI nor WebCore threads.
(cherry picked from commit 99341bce29)
2013-10-22 15:04:08 -04:00
Joe Bowser 6a57a3c452 Backporting CB-1605 2013-10-16 12:03:03 -07:00
Joe Bowser cdb49eaa1f CB-4471: Mitigating Android 4.3 errors where data isn't being passed so NPE doesn't happen 2013-10-16 11:58:07 -07:00
Joe Bowser cb11486f66 Backporting CB-4521 2013-10-16 11:44:21 -07:00
Joe Bowser 0e9b446a81 Backporting FileUtils fixes to 2.9 2013-10-01 14:45:41 -07:00
Joe Bowser 2cf79a1adb Updating cordova.js to be up-to-date 2013-10-01 14:42:56 -07:00
Joe Bowser 5550ec8f2c CB-4633: Backporting to Android 2.9.x 2013-10-01 14:05:07 -07:00
Max Woghiren 8c4c22c72a [CB-4013] Added a missing import. 2013-08-08 00:53:01 -04:00
Joe Bowser cd4a316a91 CB-4465: Supporting 2.9.x for a period of time 2013-07-30 16:20:52 -07:00
Max Woghiren 654d489c01 [CB-4013] Fixed loadUrlTimeoutValue preference. 2013-07-30 12:26:53 -04:00
macdonst e03bd0a40d CB-4155: Cordova Android - navigator.app.clearCache(); is called on (prospectively unsupported) WebViewCoreThread 2013-07-11 16:34:16 -04:00
Max Woghiren 1167da2027 [CB-4103] Made config parameters case-insensitive.
For consistency with other platforms (and for readability), UpperCamelCasing is used by default in the code.
2013-07-10 17:32:12 -04:00
Andrew Grieve 7cde444ffe [CB-4038] Move non-deprecated classes from the api package into the main package.
(cherry picked from commit 79829f6209)
2013-06-28 21:54:47 -04:00
Andrew Grieve 67e97a89ce [CB-4048] Merge branch 'master' into 2.9.x 2013-06-28 11:23:58 -04:00
Andrew Grieve 892ffc8ce4 [CB-3384] Rewrite of DataResource into UriResolver + UriResolvers
Includes unit tests woot!

Note that this remove CordovaPlugin.shouldInterceptRequest(). Should be
fine since this method was introduced only a couple of releases ago, was
never documented, and afaict was only used by the Chrome Cordova plugins.
2013-06-27 21:55:28 -04:00
Don Coleman c5e83b1079 [CB-3998] video duration is an int 2013-06-27 17:39:48 -04:00
Andrew Grieve 68bc57ae85 Remove accidentally checked in log statement "running exec normally" 2013-06-26 14:22:41 -04:00
Andrew Grieve 10d31ea0a3 Explicitly print exceptions that occur within ExposedJsApi.
Before they trickled into JNI and the stack traces were lost.
2013-06-26 14:20:45 -04:00
Joe Bowser 6aff54be76 Incrementing versions and updating code 2013-06-25 14:11:30 -07:00
Don Coleman e64ebdfaee [CB-3998] video duration is an int 2013-06-25 14:35:23 -04:00
Joe Bowser 7e15ff930d Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android 2013-06-24 11:31:47 -07:00
Joe Bowser b83610a653 CB-3949: Adding code to mitigate broken intents with the application installer 2013-06-24 11:31:32 -07:00
Jeffrey Willms 9cb14838e8 [CB-3927] Fix start-up race condition that could cause exec() responses to be dropped.
Requires a change to the JS as well.
2013-06-21 18:30:50 -04:00
Andrew Grieve 9946d15f23 Remove PluginManager.exec's return value (unused).
It's not only not used, but when it was used was messing up the
DISABLE_EXEC_CHAINING flag.
2013-06-20 22:20:58 -04:00
Joe Bowser b032dcca16 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android 2013-06-20 16:33:17 -07:00
Joe Bowser 01d6ae55a4 CB-3854: Added support for wildcard. This probably could be improved, but it does work 2013-06-20 16:33:14 -07:00
Joe Bowser f1b377bf07 CB-3854: Added support for wildcard. This probably could be improved, but it does work 2013-06-20 16:32:18 -07:00
Andrew Grieve 03c5208d47 Update JS snapshot to version 2.9.0rc1 (via coho) 2013-06-20 15:21:58 -04:00
Joe Bowser 3ace9348f6 Merge branch 'CB-3932' of git://github.com/angelaf/cordova-android 2013-06-19 16:03:18 -07:00
Joe Bowser e01678da93 Dealing with the retagging of cordova.js 2013-06-19 15:03:11 -07:00
Angela Fowler 3a14017729 CB-3932 Remove baseUrl comment in handleDestroy method made redundant by CB-3766 2013-06-19 15:22:42 +10:00
Joe Bowser 98b971b4de CB-3902: Explicitly add market URIs to CordovaWebViewClient so this always works, not just sometimes 2013-06-18 16:20:14 -07:00
Joe Bowser 2b6a683198 CB-3902: Explicitly add market URIs to CordovaWebViewClient so this always works, not just sometimes 2013-06-18 16:19:27 -07:00
Joe Bowser fb4527d91b Updating Javascript 2013-06-18 13:24:53 -07:00
Joe Bowser 8c9e416175 CB-3784: Patches are always welcome 2013-06-18 13:14:30 -07:00
Andrew Grieve a83bbcaf1d Set VERSION to 2.9.0rc1 2013-06-18 13:49:25 -04:00
Andrew Grieve 431f3337d9 Update JS snapshot to version 2.9.0rc1 2013-06-18 13:49:19 -04:00
Joe Bowser 54d32ad910 CB-3784: Nit-picking 2013-06-17 15:45:56 -07:00
Joe Bowser c0a39570c9 CB-2391: False positive, this affects 4.2.2, not ICS. Bug breaks before we get to this point. :( 2013-06-14 17:03:40 -07:00
Joe Bowser 9ac4b570e6 CB-2391: Fix for colons crashing the WebView on ICS, tested on Samsung Galaxy S2 2013-06-14 16:55:47 -07:00
Joe Bowser d2a7d18067 Fixed bad comment, it's all dying at the same time 2013-06-14 15:30:24 -07:00