summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/WebCoreSupport
Commit message (Collapse)AuthorAgeFilesLines
* [HTML5] Implementation of WebSockets (WebKit).Oleg Smirnov2013-02-232-0/+253
| | | | | | | | Added binding to android port for Html5 WebSockets. Added external API for enabling\disabling from browser. SSL Web Sockets are not implemented in the current version. Change-Id: Ie37569107c429492ee91b153939ab1ef4e07435e
* Implement requestAnimationFrameYida Wang2013-01-201-0/+4
| | | | | | | | | | | | | | | | | | | | Cherry-pick from webkit-org branch on Code Aurora Forum: requestAnimationFrame doesn't throttle on Mac https://www.codeaurora.org/gitweb/quic/la/?p=platform/external/webkit.git;a=commit;h=d9dca741b4762c433ae18f7a1bc59a3a81861fc8 Timestamp parameter to requestAnimationFrame is busted in USE(REQUEST_ANIMATION_FRAME_TIMER) path https://www.codeaurora.org/gitweb/quic/la/?p=platform/external/webkit.git;a=commit;h=f0909a46fa167c84062c63caffef340a6054bc1e Rename webkitCancelRequestAnimationFrame to webkitCancelAnimationFrame to match spec change https://www.codeaurora.org/gitweb/quic/la/?p=platform/external/webkit.git;a=commit;h=cd5d11d662d638b3e4dfda33f23cda907f007f12 Remove partially implemented per-Element visibility checks from requestAnimationFrame logic https://www.codeaurora.org/gitweb/quic/la/?p=platform/external/webkit.git;a=commit;h=9fb90af3cebd0e595990cded0941d230cf77dcc1 (cherry picked from commit 47ff59a279eab9ae5dd1fd17ce7057431750a0b5) Change-Id: I7e77200006bb0c4cd4b4209082296c425bd207c1
* Fix potential corruption/leak in cookiejar.Selim Gurun2012-08-311-1/+1
| | | | | | | | | | The flush() method of the cookie jar can be accessed from different threads. This method (eventually) creates a NewRunnableTask and a callback on FlushSemaphore object. Therefore FlushSemaphore should inherit from a ThreadSafe ref counter rather than a simple base ref counter. Change-Id: Ie6914fba9b1554081c4b3b5992661af066e23653
* Provide referer when download requestedSelim Gurun2012-08-293-1/+10
| | | | | | | | Bug: 6662557 Provide the plumbing for passing referer for downloads. Change-Id: Ia4af34632be5e5df44b7d19501db1b589c45cddf
* Use new surface flinger API.Jeff Brown2012-08-241-2/+9
| | | | Change-Id: I807620f965779274e36aac6729dc1e6374ff8716
* Remove usages of getCanvasJohn Reck2012-08-062-5/+1
| | | | | | Everything goes through either PlatformGraphicsContext or recordingCanvas() Change-Id: I375a4294d2e8d4b467b70c6b8a7f0b96f402f252
* Support autoplay attribute for media element, with optional gesture requirement.Teng-Hui Zhu2012-07-241-0/+7
| | | | | | bug:6806306 Change-Id: I09a7494278be5631d64d125390559058682386d1
* Fix stuttering caused by mallinfoJohn Reck2012-07-131-36/+8
| | | | | | | | | | mallinfo will block any malloc/frees while it is running, and unfortunately it is rather slow - it takes upwards of 70ms. Fortunately, we don't need all the info mallinfo returns, and can instead query for the total usage directly. This call merely returns a global value, so the caching mechanism that is in place is no longer necessary. Change-Id: Ida3af9202a6825b19b8590d4b40ca72ba2230c90
* Support fullscreen to inline video transition.Teng-Hui Zhu2012-06-272-14/+51
| | | | | | | | | | | | Basically, player is responsible to enter fullscreen mode such that we have the proper proxy updated on the Java side. bug:5710646 framework change: https://android-git.corp.google.com/g/#/c/202139/ Change-Id: Ie7adf620f2e9889142ef153e12d676a5f288bc0a
* Merge "Remove unused ENABLE_ANDROID_INSTALLABLE_WEB_APPS"George Mount2012-06-222-14/+0
|\
| * Remove unused ENABLE_ANDROID_INSTALLABLE_WEB_APPSGeorge Mount2012-06-212-14/+0
| | | | | | | | | | | | | | | | Remove an unused #define and code associated with it. This will smooth a possible future webkit merge. Framework change: Ibf046337cdabb9bee9cff8e3d77d9f69a59ecb15 Change-Id: I16d8c457a3f08996bc66401b241fe0db5a118975
* | Remove updateTextfield for changing passwords.George Mount2012-06-201-2/+2
|/ | | | | | | The UI no longer needs to know about password field changes as it is not required like it was with the removed WebTextView. Change-Id: I16a6bb44c31c83c5c3e9cb70f2bc865d5eb2732c
* am 5ace2391: am 6f60c96b: Merge "Don\'t override X-Requested-With if it is ↵John Reck2012-05-301-1/+1
|\ | | | | | | | | | | | | already set" into jb-dev * commit '5ace239149deab659c929c2b77c44d1dd0588801': Don't override X-Requested-With if it is already set
| * Don't override X-Requested-With if it is already setJohn Reck2012-05-301-1/+1
| | | | | | | | | | | | Bug: 6547248 Change-Id: I50490abec1ac62a94acb750182e9ae70a5a654e9
* | Merge "Make sure we don't use GPS when not required"Steve Block2012-05-291-0/+1
|\ \
| * | Make sure we don't use GPS when not requiredSteve Block2012-05-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This makes sure that we disable the GPS if a single page makes requests with enableHighAccuracy enabled, followed by requests with enableHighAccuracy disabled. Bug: 6511338 Change-Id: I4d67b84d5eed04822c05f70c2dce47a5a696c2fc
* | | am 05506155: am 5ac11a7e: Merge "Fix a browser crash related to HTML5 ↵Teng-Hui Zhu2012-05-251-9/+0
|\ \ \ | | |/ | |/| | | | | | | | | | | | | video." into jb-dev * commit '05506155eaa4e4528ea3d2b05e6953677c6d3205': Fix a browser crash related to HTML5 video.
| * | Merge "Fix a browser crash related to HTML5 video." into jb-devTeng-Hui Zhu2012-05-251-9/+0
| |\ \
| | * | Fix a browser crash related to HTML5 video.Teng-Hui Zhu2012-05-251-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is in fact take out the previous change based on the assumption that we only support fullscreen. https://android-git.corp.google.com/g/#/c/91062/ The reason we don't need this early return is we use user gesture to block the play() call which is not from user interaction. bug:6555273 Change-Id: I7012a81138d03a4d95fa976bac12cce833996def
* | | | am e8a7affb: am 2cb64bfb: Merge "Better support for HTML5 audio loop" into ↵Teng-Hui Zhu2012-05-251-0/+15
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | | | | jb-dev * commit 'e8a7affb3657241b523eb7006333216a62b97d28': Better support for HTML5 audio loop
| * | Better support for HTML5 audio loopTeng-Hui Zhu2012-05-241-0/+15
| |/ | | | | | | | | | | | | | | | | bug:5461143 frameworks change: https://android-git.corp.google.com/g/#/c/193751/ Change-Id: I691a8aa7eb2a7fc196358a3ab2929075bd4a8a8b
* | Remove the hacks used to suspend and resume the non-client-based Geolocation ↵Steve Block2012-05-221-6/+0
| | | | | | | | | | | | | | | | | | | | implementation These forks to WebCore code are not required with the client-based implementation, as we can suspend and resume the client directly. Bug: 6511338 Change-Id: I7be5b4224555bc8c3893b75275ac3a997a6677d1
* | Hook up client-based Geolocation mockSteve Block2012-05-222-3/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This simply involves updating GeolocationMock, which is called by DRT from Java, to call the GeolocationClientMock via GeolocationManager, rather than the old GeolocationServiceMock. Note that GeolocationClientMock is tied to a specific page, whereas GeolocationServiceMock had static methods, so we need to pass the WebViewCore from Java. We can now safely exclude the non-client-based files from the build. We pass all Geolocation LayoutTests, except for permission-denied-already-[error|success].html, which are flaky due to https://bugs.webkit.org/show_bug.cgi?id=87033. See corresponding framework change I6d88d5dce5c2148812b191a5b452718bf0854aeb. Bug: 6511338 Change-Id: Ib74a3c05991593e75c3138415d4ac0bf0c9aefa9
* | Always call back to new Geolocation requestsSteve Block2012-05-222-3/+29
| | | | | | | | | | | | | | | | | | This change makes sure we always call back to new Geolocation requests, even when other requests are ongoing. Note that it requires an Android-specific change to WebCore to fix https://bugs.webkit.org/show_bug.cgi?id=87030. Bug: 6511338 Change-Id: If46d2ef0eb8e81925ae51ed2e8f2d16a9fa6c997
* | Switch to client-based GeolocationSteve Block2012-05-228-41/+604
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The motivation for this switch is that it is required to enable PREEMPT_GEOLOCATION_PERMISSION. See b/4500947. The switch involves changing lots of Android's WebKit plumbing to use a new GeolocationClientAndroid in WebKit (called from WebCore::GeolocationController), rather than the existing GeolocationServiceAndroid in WebCore/platform (called from WebCore::Geolocation). This is complicated by the need to support mocking for LayoutTests. The pattern used is very similar to that used for DeviceOrientation and DeviceMotion. This patch ... - Enables CLIENT_BASED_GEOLOCATION - Leaves PREEMPT_GEOLOCATION_PERMISSION disabled for now - Removes GeolocationServiceAndroid - Adds a new GeolocationClientAndroid - Just a proxy to real client - Adds a new GeolocationManager - Manages switching between the real and mock clients - Provides the appropriate client to GeolocationClientAndroid - Plumbs to the real client calls for permissions and for suspending/resuming - Adds a new GeolocationClientImpl - The real client - Based heavily on GeolocationServiceAndroid - Delegates to GeolocationServiceBridge, as GeolocationServiceAndroid did - Calls back directly to GeolocationController - Owns the existing GeolocationPermissions - Updates WebViewCore to call the GeolocationManager for permissions and for suspending/resuming - Removes superfluous ChromeClient methods for permissions Note that support for mocking will be added in a later change. See bug for details. Bug: 6511338 Change-Id: I4cdbf55846e76b37c161834b83135b4dc48dbcdc
* | GeolocationPermissions cleanupSteve Block2012-05-184-27/+17
|/ | | | | | | | | | | | - Avoid the need to pass the main frame to GeolocationPermissions. This can be determined from the WebViewCore. - Call GeolocationPermissions::maybeStorePermanentPermissions() directly from WebViewCore to avoid the need for a ChromeClient method. No functional change. Bug: 6511338 Change-Id: I80436e3728080338199a632890a64e573a658bba
* Fix null pointer crashJohn Reck2012-05-031-1/+3
| | | | | | Bug: 6436745 Change-Id: I7225fbb3c05d9c8ea79180740bbf1b5f3faf6ead
* Merge "Disallow cookies for JavaScript when disabled." into jb-devGeorge Mount2012-04-261-3/+9
|\
| * Disallow cookies for JavaScript when disabled.George Mount2012-04-251-3/+9
| | | | | | | | | | | | Bug 6363497 Change-Id: I97d6e7caf1820a624f92a12b69bd4ccfab80e0b9
* | Fix use after freeJohn Reck2012-04-261-2/+2
|/ | | | | | Bug: 6396295 Change-Id: I7c115a06ee7605956d205d1401b84d1118c8be85
* Fix crash in createWindowJohn Reck2012-04-171-3/+3
| | | | | | | | | Bug: 6343878 frame->view()->platformWidget() is only valid on the main frame, not subframes. Fix the dialog check to use windowRect(), which handles getting the WebCoreViewBridge from the right frame Change-Id: Ia7083e2b7d54774bc33f41ac58f547c4c139c5b6
* Unify composited layer/base layer draw pathChris Craik2012-04-101-1/+1
| | | | | | | | | | Multiple paths were redundant, as they both synchronized the layers, and drew the base if needed. depends on frameworks/base change: https://android-git.corp.google.com/g/#/c/179964/ largely reverts 3adbe453816c9282bfe1d212e813661ce2590955 Change-Id: Ic60f79521dc62e7c2281302bc51a3dfde16d396f
* Merge "Implements a recording GraphicsContext"Nicolas Roard2012-04-061-1/+3
|\
| * Implements a recording GraphicsContextNicolas Roard2012-04-061-1/+3
| | | | | | | | Change-Id: I41feadb23dce25af321331c459eb159c6141831b
* | Avoid leaking a JNI local ref in JavaInputStreamWrapper::read()Steve Block2012-04-051-36/+28
|/ | | | | | | | | | | Make sure we release the local ref returned by NewByteArray() once we've taken a global ref to the array. Also fix up the rest of the file to use ScopedLocalRef to avoid this kind of problem in future. Bug: 5498704 Change-Id: I33754a0188a3c08a5c34d0e161cd7073f83070c6
* Remove unused FORM_DID_BLUR hooks.George Mount2012-04-021-5/+1
| | | | | | | Bug 6111763 Framework Change: I56a862a6c0f0d7799f4e935bb7f5103bb2edbb9b Change-Id: I015e1a57e81e897c124af5d96ba76b4d07a381fc
* reimplement BaseLayerAndroid as a LayerAndroid subclassChris Craik2012-03-221-6/+1
| | | | | | Breaks low res tiling, and expanded rendering bounds. Change-Id: Iec3ba2adceb6bd95399594d29fd8c0b18c1122ce
* Update edit text size when the text changes so scroll works.George Mount2012-03-151-2/+16
| | | | | | | Bug 6176413 Framework Change: I6b8f244cd747d6d19c261d685a3cfb9ef4d71ec3 Change-Id: I487322ca9578c003f937b92ca4e8d46d34ea8c78
* Remove gmail specific mime code from webviewSelim Gurun2012-03-142-12/+3
| | | | | | | | | | | | | | | | Bug: 6019611 Remove gmail specific mime code from webview so the query parameters can be passed to asset files. The changes were added in honeycomb timeframe (see commit 7d2f6c10941c9083e9ec30fb08444a5755ff8bc9). The changes seem not in use anymore (tested for some attachments following the original commit above), also talked to gmail team and they also do not think it is in use. Also it seems a hack to modify webview for one app in such a way. Get rid of an unused private variable. Change-Id: Ic74414eaa0d6a2be77eefdd0b8a053f655b285ff
* Merge "remove hacky workaround for a scrolling bug"Victoria Lease2012-03-091-3/+1
|\
| * remove hacky workaround for a scrolling bugVictoria Lease2012-03-071-3/+1
| | | | | | | | | | | | | | | | Bug: 5470588 I'll file a bug for the scrolling issue that this unmasks. Change-Id: If6ea7ffd163260c70ada61960ac3d70465e93918
* | Support passing focus to the chromeJohn Reck2012-03-061-2/+9
|/ | | | | | | Bug: 6109044 This is primarily for tab navigation, arrow keys are handled differently Change-Id: I72968014535afe21bbcb43913bd11cbb676daaf9
* Fix iframe, for reals!John Reck2012-03-012-29/+17
| | | | Change-Id: I588aa5709e7a3c2ced9479c3cf9c1827bf6f7733
* pin find-on-page scrolls to content edgesVictoria Lease2012-03-011-10/+15
| | | | | | | | | Bug: 6066283 This change also contains code to prevent find-on-page from scrolling in unnecessary circumstances, for example when a match is already being displayed. Change-Id: I555c84f8851a82e854d12cb34b8805c9d3f22f5e
* Merge "Fix iframe webkit positioning"Nicolas Roard2012-02-271-0/+12
|\
| * Fix iframe webkit positioningNicolas Roard2012-02-271-0/+12
| | | | | | | | Change-Id: I7b2b3a7312c89bc505d7f629380df0d3f24eee5f
* | move libgui headers in the right placeMathias Agopian2012-02-271-1/+1
| | | | | | | | Change-Id: Ice3e54df3accab3874ef95e1ec0c2bf55809a57e
* | Delete CacheBuilderJohn Reck2012-02-241-6/+0
| | | | | | | | | | | | Fixed address_detector to pass CTS Change-Id: I6e3c4146d4c03881d036be9b8d8708a8200efef8
* | Drop support for Android HTTP stackSteve Block2012-02-223-38/+0
|/ | | | | | | | | | | | | All future releases will use the Chromium HTTP stack and maintaining two HTTP stacks adds maintenance overhead. The Chromium HTTP stack requires V8, but we now use V8 in all build targets (b/5495373), so we can safely drop the Android HTTP stack. See corresponding framework change https://android-git.corp.google.com/g/166325. Bug: 5495616 Change-Id: I41117b6750fbc1c84cbd4a5951b0d1a457354f93
* frameworks/base refactoring.Mathias Agopian2012-02-172-2/+2
| | | | | | step 2: move libutils headers to their new home in androidfw. Change-Id: I5e97cfccf6828bc37207b92fbfe301b1ca31df4c