summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Provide a URLRequestContext directly to AutoFill, rather than a factory functionSteve Block2010-11-301-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In b/3044989, AutoFill was modified to take a factory function for the URLRequestContext (which was then created when needed), rather than taking the context directly. This was to avoid a race condition where the context is created before the required storage paths have been synced to the WebCore thread through the BrowserFrame. Since https://android-git.corp.google.com/g/76579 and https://android-git.corp.google.com/g/80056, we read the required paths directly from JniUtils, so the race condition no longer exists. We can therefore provide the context directly to AutoFill. Note that while the context may be created before the Settings have been synced to the WebCore thread, the necessary properties will be updated as part of this sync before the context is used. This change will also simplify things when we use one context per WebView. Also requires a change in external/chromium ... https://android-git.corp.google.com/g/82146 Change-Id: Idfc34d435bae21654a02e5898aef0e84da98218a
* | | | Merge changes I006cddf2,Ib304a845,I4622749dSteve Block2010-11-298-51/+49
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | * changes: Moves implementation of ResourceLoaderAndroid to ResourceLoaderAndroid.cpp Add a static WebRequestContext::acceptLanguage() method Make WebCookieJar::get() threadsafe
| * | | Moves implementation of ResourceLoaderAndroid to ResourceLoaderAndroid.cppSteve Block2010-11-292-30/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This means that the implmentation of this class for both HTTP stacks is in the same place. Change-Id: I006cddf27c245a88327643314bb7564a2486ff38
| * | | Add a static WebRequestContext::acceptLanguage() methodSteve Block2010-11-293-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the need for PlatformBridge::computeDefaultLanguage() to get an instance of WebRequestContext. This is part of the refactoring to use a WebRequestContext per WebView. Bug: 3113804 Change-Id: Ib304a8457a82d09d80fe4d6298f00f688ec53b7c
| * | | Make WebCookieJar::get() threadsafeSteve Block2010-11-295-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should have been part of https://android-git.corp.google.com/g/78476 which factored WebCookieJar out of WebRequestContext. Also, now that WebRequestContext::get() is called nly on the WebCore thread, it does not need to be threadsafe. Bug: 3113804 Change-Id: I4622749d1650be0b9ca0d37541361955a367110f
* | | | Merge "Factor out WebCache from WebRequestContext"Steve Block2010-11-293-66/+98
|\ \ \ \ | |/ / /
| * | | Factor out WebCache from WebRequestContextSteve Block2010-11-293-66/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the second step in allowing us to have a WebRequestContext per WebView, which is required to allow the useragent string to be configured per WebView. Bug: 3113804 Change-Id: Idcd252194562d1ef91d9d6e2baf8c65b8ff088d4
* | | | Merge "Minor code cleanup in WebCookieJar"Steve Block2010-11-262-25/+20
|\ \ \ \ | |/ / /
| * | | Minor code cleanup in WebCookieJarSteve Block2010-11-262-25/+20
| | | | | | | | | | | | | | | | Change-Id: Ia68bac6bd93b0afeff049a9ac0f056191d92d2a0
* | | | Merge "Factor out CookieManager from WebRequestContext"Steve Block2010-11-265-82/+218
|\ \ \ \ | |/ / /
| * | | Factor out CookieManager from WebRequestContextKristian Monsen2010-11-265-82/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first step in allowing us to have a WebRequestContext per WebView, which is required to allow the useragent string to be configured per WebView. Bug: 3113804 Change-Id: I9ccf07d4a277147e74e2f3e701bd6d2166954280
* | | | Merge "No longer need to pass storage paths to ↵Steve Block2010-11-262-4/+4
|\ \ \ \ | |/ / / | | | | | | | | WebRequestContext.cleanupPrivateBrowsingFiles()"
| * | | No longer need to pass storage paths to ↵Steve Block2010-11-262-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebRequestContext.cleanupPrivateBrowsingFiles() Requires the following changes to frameworks/base and packages/apps/Browser https://android-git.corp.google.com/g/81782 https://android-git.corp.google.com/g/81780 Bug: 3232569 Change-Id: I73cabb561e206beee2bc1716f04aed8764797cc1
* | | | Merge "Fixes WebResourceRequest to correctly set load flags"Steve Block2010-11-261-21/+29
|\ \ \ \ | |/ / / |/| | |
| * | | Fixes WebResourceRequest to correctly set load flagsSteve Block2010-11-251-21/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now correctly set the cookie load flags and the cache control HTTP headers. Bug: 2889880 Change-Id: I759a3131b73a8fc82432a067a31754fcc566c136
* | | | Set useCachedCredentials to true on first auth request.Iain Merrick2010-11-254-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This flag previously defaulted to false, but the Android CTS specifies that a "sufficient" implementation should return true on the first authentication request. (The second and subsequent auth requests aren't tested.) This CL sets the flag to true on the first authentication request for a given WebRequest, but false for subsequent requests (i.e., if the first attempt to authenticate failed). Using a counter rather than a flag in WebRequest for readability. "isFirstAuthRequest" would be a bit ambiguous as a member variable, but "authRequestCount" seems pretty clear. Change-Id: Id9baae4c30111f743e079f90940078b07498b168
* | | | Merge "Removing CRASH() from asserts in WebRequest.cpp"Kristian Monsen2010-11-241-1/+0
|\ \ \ \
| * | | | Removing CRASH() from asserts in WebRequest.cppKristian Monsen2010-11-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These asserts have not been triggered in months, so removing the crash (but keeping logging), and closing bug 2951985. Change-Id: I5bb31c6e23c18e83301428582ad895b0b679ff86
* | | | | Revert "Merge Chromium at r65505: Work around regression introduced by 64761"Ben Murdoch2010-11-231-6/+0
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 0c918ae77b5edfe59b726ff40a7c86dbc4a94307. This was actually not really a regression as we were still broken previously it's just that this change makes that breakage more visible. The problem reproduces on tip of tree Chromium, so we can make the fix upstream and then cherry pick into Android. Change-Id: I4d65544b4ea137d77c00a39fcd29edb28b40aa1c
* | | | Merge "By default, provide native AutoFill with an empty profile."Ben Murdoch2010-11-232-1/+25
|\ \ \ \
| * | | | By default, provide native AutoFill with an empty profile.Ben Murdoch2010-11-232-1/+25
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If no profile is set then AutoFill will not inform Java that it has found a form that could be autofilled. We want to be able to offer the user the option Java side to set up a profile in this case, so we set by default an empty profile that is active until the user syncs their real profile. This ensures that the AutoFill detection code will not early out. Change-Id: I474b25c5b31dae59e4ddb23c7f398d013e9d3beb
* | | | Merge "Call maybeSavePassword() from Chrome HTTP stack."Iain Merrick2010-11-221-1/+5
|\ \ \ \
| * | | | Call maybeSavePassword() from Chrome HTTP stack.Iain Merrick2010-11-221-1/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will prompt the user to save the username and password when posting a form. Same behaviour as the Android HTTP stack. Bug: 3060688 Test: Logged into amazon.co.uk, checked that password is saved. Change-Id: I4185b7ef2fbb299e4441b18b50f0018f0208d264
* | | | Merge "Fixes the handling of unspecified mime-type"John Reck2010-11-222-0/+20
|\ \ \ \ | |/ / / |/| | |
| * | | Fixes the handling of unspecified mime-typeJohn Reck2010-11-222-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 3211038 and 3211569 If the server doesn't specify a Content-Type header in the response, there was no mime-type set when using the Chrome HTTP stack. This change fixes it so that it makes a guess based off of the URL extension. Change-Id: I33ef90c1db54bdccb4e143795656f4f9b56572ca
* | | | Merge Chromium at r65505: Work around regression introduced by 64761Ben Murdoch2010-11-221-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a temporary workaround to fix the regression introduced on Android by http://src.chromium.org/viewvc/chrome?view=rev&revision=64761 It should be reverted when we understand better the root cause of the regression. Change-Id: I6652d817254f1b8c3857e2f14b53d5d034d2f12f
* | | | Merge Chromium at r65505: Merge AutoFill change 64761Ben Murdoch2010-11-221-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge in http://src.chromium.org/viewvc/chrome?view=rev&revision=64761 This is not part of the bigger autofill merge as this introdcues a regression that we need to understand. Change-Id: I08cfcefb93181e70a8a48d0c6da2217d3a5bbcf9
* | | | Merge Chromium at r65505: Update AutoFill files.Ben Murdoch2010-11-223-83/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring our forked AutoFill files in line with r65505. http://src.chromium.org/viewvc/chrome?view=rev&revision=63527 http://src.chromium.org/viewvc/chrome?view=rev&revision=63797 http://src.chromium.org/viewvc/chrome?view=rev&revision=64470 http://src.chromium.org/viewvc/chrome?view=rev&revision=64572 http://src.chromium.org/viewvc/chrome?view=rev&revision=64612 http://src.chromium.org/viewvc/chrome?view=rev&revision=64691 http://src.chromium.org/viewvc/chrome?view=rev&revision=64696 Change-Id: I34755e649d1093a79ad50de53dfd1d1f9e92a584
* | | | Merge Chromium at r65505: Initiliase the OpenSSL library.Ben Murdoch2010-11-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | See https://chromereview.prom.corp.google.com/2010002/ Change-Id: I16754f6f18a54350671a2226d4c8c69615c63812
* | | | Merge Chromium at r65505: Update use of AutoFillProfile.Ben Murdoch2010-11-222-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this new Chromium merge, unique profile ids have been deprecated and profile previews are obtained through the Label function rather that PreviewSummary. WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp: WebKit/android/jni/WebSettings.cpp: WebKit/android/WebCoreSupport/autofill/WebAutoFill.h: http://src.chromium.org/viewvc/chrome?view=rev&revision=63806 http://src.chromium.org/viewvc/chrome?view=rev&revision=65100 Change-Id: I8af86c8be8627e17b13edf66349d9df8f85638a1
* | | | Merge Chromium at r65505: Update log message handlerBen Murdoch2010-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new parameters to our error logging handler. WebKit/android/WebCoreSupport/ChromiumLogging.cpp http://src.chromium.org/viewvc/chrome?view=rev&revision=65062 Change-Id: I6f34f2c5170b218c81894da541c923782e150e2e
* | | | Merge Chromium at r65505: Update call to CreateSystemHostResolver.Ben Murdoch2010-11-221-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Pass NULL, which uses getaddrinfo() as the host resolver. WebKit/android/WebCoreSupport/WebRequestContext.cpp: http://src.chromium.org/viewvc/chrome?view=rev&revision=64271 Change-Id: I85d9371d568911ab925307bfbeb2e984bd947e2b
* | | Merge Webkit at r71558: Add computeDefaultLanguageTeng-Hui Zhu2010-11-171-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because navigotor.language no longer hardcoded. Note that on android HTTP stack, this function will naivelly return English in order to avoid code dependency on chrome stack specific code. http://trac.webkit.org/changeset/71484 Change-Id: I151105bb1478fa2da12ecf50c45102c3afceeb82
* | | Merge Webkit at r71558: Add function focusedFrameChangedTeng-Hui Zhu2010-11-172-0/+2
| | | | | | | | | | | | | | | | | | http://trac.webkit.org/changeset/71541 Change-Id: Ic068c75dec986e8761c6d57030ce7cfba2e8eb01
* | | Merge Webkit at r71558: Vitual function implementation in ChromeClientAndroid.*Teng-Hui Zhu2010-11-172-0/+8
| | | | | | | | | | | | | | | | | | http://trac.webkit.org/changeset/71041 Change-Id: Ifc88920a1cce9bf483d06a68a5ab4d23b63228d0
* | | Merge "Updating class used for getDatabaseDirectory and getCacheDirectory"Kristian Monsen2010-11-171-2/+2
|\ \ \
| * | | Updating class used for getDatabaseDirectory and getCacheDirectoryKristian Monsen2010-11-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Required by this CL in frameworks/base: https://android-git.corp.google.com/g/#change,80051 Change-Id: I673e8a5a112d96721fe2e06d84653d1c75fd667a
* | | | Merge autofill files after last Chromium mergeBen Murdoch2010-11-168-505/+787
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge by hand the files that have been gotked implementing AutoFill on Android. This classes use WebCore types rather than the Chrome WebKit API types that the code would normally use. This brings the files up to date with the last external/chromium merge to r63472 and updates their usages in line with that so that the feature continues to work as intended. Change-Id: Ic110873dc48c59555f0db76e7ad0c138c2fe96f2
* | | | Fix a crash due to null java strings.Patrick Scott2010-11-151-4/+10
| | | | | | | | | | | | | | | | Change-Id: I29a229da168181ba3d5bc5fb84365f275eb42869
* | | | Allow applications to intercept requests.Patrick Scott2010-11-155-74/+234
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The api returns a response containing the mime type, encoding, and an optional InputStream for reading data. Move the asset and content url logic into the new api to consolidate some code. Requires a change in frameworks/base. Bug: 2905943 Change-Id: Ic7af410308872042c412aedf62e589f6d2095782
* | | Don't set error description strings in ResourceError.Iain Merrick2010-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These strings may be displayed to the user, so they need to be localized. In a separate change (I7dec8dff) I updated the Java framework to use a standard localized message if the description is empty, so here we just use the empty string (same as Chrome). Bug: 3172265 Test: Load http://google.com:81 to force a timeout error, check that the correct message is displayed. Change-Id: I9042a2ee99cd78619cc0392cdc2cbb82ebd51743
* | | Fix mobile google.com flickering issue.Shimeng (Simon) Wang2010-11-124-2/+27
| | | | | | | | | | | | | | | | | | | | | Implementing request cache policy in chrome http integration. issue:3008478 Change-Id: I3d7c32912e72e7639885056fb70f9f627d075c4e
* | | Merge Webkit at r70949: Added new FrameLoaderClient stubsJohn Reck2010-11-094-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | http://trac.webkit.org/changeset/70333 http://trac.webkit.org/changeset/70574 http://trac.webkit.org/changeset/70894 Change-Id: I9a212f4ab07c0599ebb8dbd10201f5ca0fa71f69
* | | Merge "Fix browser crash."Patrick Scott2010-11-051-7/+9
|\ \ \
| * | | Fix browser crash.Patrick Scott2010-11-051-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | Also fixed indenting (3 spaces?). Change-Id: If4a137d1af3ec8a597e8b929e5b4f10240f2f054
* | | | Merge "Update method to take const std::string& argument"Kristian Monsen2010-11-052-2/+2
|\ \ \ \ | |/ / / |/| | |
| * | | Update method to take const std::string& argumentKristian Monsen2010-11-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It's safe to pass this across threads since NewRunnableMethod copies the argument. Change-Id: I620ebfe64ead7947ac3a6733507865938e04a8df
* | | | Send the AutoFill Preview string java side.Ben Murdoch2010-11-052-25/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we have determined that the form can be autofilled, send a preview string over to Java so that we can display it in the drop down box. Requires a change in frameworks/base: https://android-git.corp.google.com/g/#change,77127 Change-Id: Ia0dd899d659c6e5710155f33749255058d7c3faf
* | | | Map Chromium error codes to WebKit error codes.Iain Merrick2010-11-044-4/+197
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | On network errors, we were seeing strange "Data connectivity problem" alert boxes. This is because we were using the HTTP status code instead of a real error code; and when there's a connection error, the HTTP status is uninitialised, so the "error code" was 0 (no error). Bug: 3140283 Change-Id: I0566c29359a0ecb2998573d1a2a77306922c87be
* | | Hook chromium logging up in WebKitKristian Monsen2010-11-043-0/+110
| | | | | | | | | | | | Change-Id: Ide08371e0bc8f74ef80fe25d416623bd03ac6038