summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge Webkit at r73109: getGuessForWord method signature changeShimeng (Simon) Wang2010-12-222-2/+2
| | | | | | | This is because: http://trac.webkit.org/changeset/73088 Change-Id: I4051bc71c638e74ede803b216d9035311cbaf198
* am 1e5798a4: am d436a8e4: Allow HTML5 video to seek.Ben Murdoch2010-12-221-0/+4
|\ | | | | | | | | * commit '1e5798a41696c2d04b2a28eabf9e5914fb6856e2': Allow HTML5 video to seek.
| * am d436a8e4: Allow HTML5 video to seek.Ben Murdoch2010-12-221-0/+4
| |\ | | | | | | | | | | | | * commit 'd436a8e4bf9a2c6eab6a09513ce13340c84ef10c': Allow HTML5 video to seek.
| | * Allow HTML5 video to seek.Ben Murdoch2010-12-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Need to return the duration of the currently playing video to WebCore to allow the video to seek correctly. Bug: 3303699 Change-Id: I79f6a7e7217cf987d35b5b1a9313a918630be7a0
* | | Removing the host resolver leakKristian Monsen2010-12-222-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The crash was fixed when some unsafe local changes were removed recently. I think this was what removed the crash: https://android-git.corp.google.com/g/#change,84795 Fix for bug 3243797 Change-Id: If23e55270f035831ef7781681b012dfdca0ac74d
* | | Adding a method to delete a WebCacheKristian Monsen2010-12-223-2/+13
| | | | | | | | | | | | | | | | | | | | | This is needed so the cache doesn't survive when closing all private tabs. Change-Id: I52ffaf89f8794466f98370c289b9a646de0fdb59
* | | Only download the same poster URL once.Ben Murdoch2010-12-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebKit r64884 introduced code that calls setPoster multiple times. On Android this causes the Java side to attempt to download the poster many times which for a long video results in OOM. So if the poster hasn't changed, don't try to download it again. Bug:3277303 Change-Id: Ia401b78cf250af2c1fe0e600dea6d1da0971912a
* | | Merge "Fix crash in AutoFill"Ben Murdoch2010-12-201-2/+1
|\ \ \
| * | | Fix crash in AutoFillBen Murdoch2010-12-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We recently changed WebKit to use one URLRequestContext per WebView. However AutoFill did not get migrated to the new system and so we have observed crashes due to a dangling pointer. We have one AutoFill object per WebView and hence one Profile object per webview. we access the URLRequestContext through the Profile so inject the correct context in when the AutoFill object is created. Needs a change in external/chromium, see I004ab7ac9c6a72be1b62aa8e44322b97a371c136 Bug: 3291654 Change-Id: Iace23ae8c0240f0134894c12d2f7281161aa6150
* | | | Merge "Fix two SIGSEGV bugs in request interception."Jeff Sharkey2010-12-172-9/+16
|\ \ \ \ | |/ / / |/| | |
| * | | Fix two SIGSEGV bugs in request interception.Jeff Sharkey2010-12-162-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When intercepting requests, properly ReleaseStringUTFChars for mimeType and encoding after bringing over from Java. Also, when finishing an intercepted request that failed, construct a valid WebResponse. Change-Id: I2990df2108a8fdf45c103512a8b9a30f4d6992ce
* | | | Merge "Use a lock around ioThread creation."Patrick Scott2010-12-171-0/+6
|\ \ \ \ | |/ / / |/| | |
| * | | Use a lock around ioThread creation.Patrick Scott2010-12-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | This prevents use of the new thread before it actually starts running. Change-Id: Idabb9cf81c62296534b696b82a08d3801aa16af8
* | | | Layers implementation in GL.Nicolas Roard2010-12-161-0/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add textures management code for layers in TilesManager - add the layers drawing GL code - modify BaseLayerAndroid::drawGL() to paint the layers - modify TexturesGenerator to process layers painting requests Note: some further refactoring (when getting rid of SkLayer as a base class) will let us remove some redudant function, e.g. setAnchorPoint/setAnchorPointZ (bug:3292285) Change-Id: I3cc88575f331104d45c89e84ba27f3af755aa845
* | | Pass redirects through canHandleRequest.Patrick Scott2010-12-162-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | Force the user gesture global to true in order for canHandleRequest to ask the application. Bug: 3278072 Change-Id: I1f821ba42c6c630465658b7044ee89c7255eb9a1
* | | Merge "b/2864818 Prompt SSL cert error dialog to user and proceed or cancel ↵Huahui Wu2010-12-157-11/+61
|\ \ \ | | | | | | | | | | | | the request. Java side CL: https://android-git.corp.google.com/g/#change,84530"
| * | | b/2864818 Prompt SSL cert error dialog to user and proceed or cancel the ↵Huahui Wu2010-12-157-11/+61
| | | | | | | | | | | | | | | | | | | | | | | | request. Java side CL: https://android-git.corp.google.com/g/#change,84530 Change-Id: I2a16be691ba3846f3ecb1fd533905d7b6ac374fc
* | | | Adding proxy support to the Webkit layerKristian Monsen2010-12-153-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | Right now it is only used as a direct proxy so no functional change. Change-Id: I69be139f6567ca0b34f051a1429b78395fe1a3fe
* | | | Fix WebView form submission CTS failure.Ben Murdoch2010-12-152-14/+17
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we try to resolve the MIME type from the URL path, we need to be sure to pass just the path so strip off any fragment or query strings. Otherwise this wreaks havoc when we try and extract the file extension to deduce the MIME type. Bug:3241908 Change-Id: I592ae7ba0acc7478789599aeb6973675ed415a37
* | | Merge "Set 660 permissions on Geolocation permissions DB"Steve Block2010-12-142-3/+21
|\ \ \
| * | | Set 660 permissions on Geolocation permissions DBSteve Block2010-12-142-3/+21
| | | | | | | | | | | | | | | | | | | | Bug: 3256540 Change-Id: Ica5bcf66b7c95fde68836a3607ad30affbb3b1ce
* | | | Only the WebRequestContext handle deletion of private cookiesKristian Monsen2010-12-133-52/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is now only done on the webcore thread, and not on external request. Bug 3243891 Change-Id: Ia46422f2f92c2d7c4907862a8059af64f6e50f06
* | | | Merge "Fixes cookiejar and webicon permissions"John Reck2010-12-131-0/+10
|\ \ \ \
| * | | | Fixes cookiejar and webicon permissionsJohn Reck2010-12-101-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 3244281 Change-Id: Ib7359e5524aeaf4f82f52603e83dde3e99c507c2
* | | | | Clean the private cookies when we create the first or remove the last contextKristian Monsen2010-12-131-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 3243891 Change-Id: Ia67ae91bd5ca13c896e45bf4dcc79debd77051db
* | | | | Make private browsing cache in-memoryKristian Monsen2010-12-133-23/+15
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is better as private browsing data should not be written to disk if it can be avoided. Bug 3274225 Change-Id: I5c1832bbe26e58bc7e430ecdaa7cbd0a6ba1c384
* | | | Merge "Update Audio MediaPlayer to cope with a live stream"Ben Murdoch2010-12-091-1/+10
|\ \ \ \
| * | | | Update Audio MediaPlayer to cope with a live streamBen Murdoch2010-12-091-1/+10
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | The Android framework gives us a duration of 0s for a live stream so in that case tell WebCore we have an infinite duration. Change-Id: I5caea8401406785eba61424cdb02abf9bfab0912
* | | | WebResponse headers should be case-insensitive.Iain Merrick2010-12-091-1/+9
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CTS test WebViewTest.testSetDownloadListener was failing due to a disagreement over the capitalization of "Content-Disposition". Rather than making our stack exactly match the CTS server, it looks like the headers should actually be case-insensitive. (Note that we still preserve the case of the headers exactly as reported by the server, so hopefully this won't break anything else.) BUG=3242063 TEST=WebViewTest.testSetDownloadListener Change-Id: I0931da98aab9080127e355e51d89ac3fde12e7c2
* | | Fix for <select> elements.Leon Scroggins2010-12-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug:3230016 Allow webkit to handle the click on a <select> element if it is a RenderMenuList. Implement PopupMenu class, using PopupMenuClient to interact with the <select> element. Change-Id: I9611c23304fc2fc3eb01ecbd7a46fa02cd52df9a
* | | Fix CookieManager.hasCookies().Iain Merrick2010-12-062-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To pass the CTS test, this method needs to check the persistent database directly, ignoring any cookies that are only stored in memory. Depends on change Id498d281 in external/chromium, which adds the GetCookieCount() method. Change-Id: Ibeceaaa9942b5f4f1160fc2eeeca8b2322169a90
* | | Merge "CookieManager::flushCookieStore() is now synchronous."Iain Merrick2010-12-062-0/+63
|\ \ \
| * | | CookieManager::flushCookieStore() is now synchronous.Iain Merrick2010-12-032-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that all data is correctly stored before onPause() returns. There's no API change on the Java side (although I should update the comment to explain it's now synchronous; I'll do that in another CL). Depends on a new completion callback added to CookieMonster. See change Ieb3e787b in external/chromium. Change-Id: I008f35d101a9223fe705396273bc4cd563a5f77e
* | | | Refactor AutoFill so it runs lazily.Ben Murdoch2010-12-064-26/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL refactors the AutoFill code so that we only search for forms when we need to, i.e. the user has focused a form field. This helps page load times. We also re-search the document for forms if the dom version number has changed. These changes fix a bug where a crash occurs if the form is focused before the page has finished loading. We also move the callsite of formFieldFocused so that it only occurs when the IME is requested which is a more appropriate place called less frequently than it's current callsite in EditorClientAndroid. Bug: 3243567 Change-Id: I04fe13944d3f8248197d71a0e58c21f01c4abdd0
* | | | Merge Chromium at r66597: Merge in AutoFill changes in r66310Ben Murdoch2010-12-032-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | See http://src.chromium.org/viewvc/chrome?view=rev&revision=66310 Change-Id: If294e929ee4d27fd6804939986be7650ff7224ad
* | | | Merge Chromium at r66597: Merge in AutoFill changes from r66237Ben Murdoch2010-12-031-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | See http://src.chromium.org/viewvc/chrome?view=rev&revision=66237 Change-Id: I1baea2eea0e6cf0def36ce3f69e8fb53a17eb2ba
* | | | Merge Chromium at r66597: AutoFill: no more queryIdBen Murdoch2010-12-034-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | See http://src.chromium.org/viewvc/chrome?view=rev&revision=66237 Change-Id: Ie2bf417bf20686ca782f6c0e4d2527e666c88ad4
* | | | Rewrite scrollable layers using multiple layers.Patrick Scott2010-12-032-7/+6
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove PlatformBridge::updateLayers and instead call layersDraw from ChromeClientAndroid during a requested sync. Instead of LayerAndroid having knowledge of scrolling pictures, use multiple layers (background, mask, foreground). Update navigation to use the new structure. Always record nodes in absolute, unscrolled coordinates. Do not track layers unless the node has a composited layer and a last child. Check for composited parents when adding to tracked layers as well. TODO: * developer.android.com doesn't completely work with navigation due to some nodes being clipped out. * BaseLayerAndroid needs to be able to operate with a matrix other than identity. * nested fixed position elements do not draw correctly. * nested overflow layers haven't been tested. Change-Id: I0e2bd37612341e8884d68153ab36194cb2dc1eeb
* | | Merge WebKit at r72274: Implement PlatformBridge memory management methods ↵Ben Murdoch2010-12-023-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for WebKit change 71639 Get device class specific memory constraints for V8. V8 can be more efficient in terms of memory management but to do so needs to know about what resources are available to it. This varies device to device on Android so add implement the functions that the the PlatformBridge needs to query the relevant values from Java. MemoryUsage.cpp will compile for JSC, but needs tuning to report correct JSC stats. It's currently a non-issue, as this routine is only used with V8, at present. Requires a frameworks/base change: https://android-git.corp.google.com/g/#change,78690 Bug: 3075565 Requires a previously upstreamed webkit change: http://trac.webkit.org/changeset/71639 Change-Id: I25ff54b5c8e25f5de5380e0d43e56551587adc5d
* | | Enable SPDY, and renames initChromiumLoggingKristian Monsen2010-12-023-10/+11
| | | | | | | | | | | | | | | | | | | | | initChromiumLogging is now renamed to the more generic initChromium, the files are renamed to ChromiumInit.* Change-Id: Ic9639d637f25e664b51d076b9b0ee58c2867c1b5
* | | Use one WebRequestContext per WebViewSteve Block2010-12-0114-107/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change switches from using a pair of WebRequestContexts (one for private browsing, one for regular browsing) to using one WebRequestContext per WebView. This is required to allow us to set the userAgent on each WebView. The WebRequestContext is now owned by the WebView. Bug: 3113804 Change-Id: Iba2b1490e7ce4ff65c08a04a310963fa2c7e4f83
* | | Merge "b/2864818 setting the appropriate error code for certificate error."Huahui Wu2010-12-013-0/+19
|\ \ \
| * | | b/2864818 setting the appropriate error code for certificate error.Huahui Wu2010-12-013-0/+19
| | | | | | | | | | | | | | | | Change-Id: I628b6fdd82089207c5a25ad816d3e6475d85911a
* | | | Merge "Do more AutoFill steup lazily"Steve Block2010-12-012-5/+11
|\ \ \ \
| * | | | Do more AutoFill steup lazilySteve Block2010-12-012-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, much of the AutoFill setup is done in the WebAutoFill constructor, which is called when the Page is created. This change moves this setup to be done lazily when searchDocument() is called, which is the entry point into the feature. Change-Id: I0d437ed53391b5a7d8d16ec1000dc783c710e564
* | | | | Merge "Fix a bug when cleaning up private browsing"Steve Block2010-12-015-59/+76
|\ \ \ \ \ | |/ / / /
| * | | | Fix a bug when cleaning up private browsingSteve Block2010-12-015-59/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Delete the singleton WebCache and WebCookieJar objects when we clear up private browsing, so that they are correctly recreated when next required. Note that this patch causes the WebCache to leak the HostResolver object, as was the case before the refactoring in b/3113804. See b/3243797. Bug: 3113804 Change-Id: Ic0e2a45b5fd2b30097880e57eac2f6cadbd5dc85
* | | | | Youtube urls can now start with /v/ or /e/Kristian Monsen2010-12-011-1/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix for bug 3242961 Note that the youtube player crashes when you launch it, but that also happens with old style urls. Tested with the testcase in the bug. Change-Id: I0cb59f8404fe47aabec34c0a21e614f553ea0c32
* | | | Remove a superfluous TODO in ResourceLoaderAndroid.cppSteve Block2010-11-301-1/+0
| | | | | | | | | | | | | | | | Change-Id: I290228dce1ce3e0be56666775f591c6c2b7dab32
* | | | Merge "Provide a URLRequestContext directly to AutoFill, rather than a ↵Steve Block2010-11-301-6/+1
|\ \ \ \ | |/ / / |/| | | | | | | factory function"