diff options
| author | Ben Murdoch <benm@google.com> | 2011-09-09 16:49:44 +0100 |
|---|---|---|
| committer | Ben Murdoch <benm@google.com> | 2011-09-09 22:38:39 +0100 |
| commit | 2376f8253f59e70e733bdf338e9cb49535f3d50f (patch) | |
| tree | e1e0fdcad17eb98d6904967c9588064b26eaeedf /core/java/android/webkit/BrowserFrame.java | |
| parent | 02ea7d48773210fa0f29299269aca26b3201b1d0 (diff) | |
Relax form autocomplete conditions
Use the URL host and path rather than the complete url to store
form autocomplete data. This helps in the situation that a site
uses some dynamic query string on the page that contains the form.
Also set the autoocmplete threshold to 1 so that we don't flick the
autocomplete options up and down as you type the first few characters.
Bug: 5265606
Change-Id: I7b372400062ae34f70a78b786007910dc179b101
Diffstat (limited to 'core/java/android/webkit/BrowserFrame.java')
| -rw-r--r-- | core/java/android/webkit/BrowserFrame.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/webkit/BrowserFrame.java b/core/java/android/webkit/BrowserFrame.java index 49b4f66485e7..309857d033e0 100644 --- a/core/java/android/webkit/BrowserFrame.java +++ b/core/java/android/webkit/BrowserFrame.java @@ -422,9 +422,9 @@ class BrowserFrame extends Handler { final WebHistoryItem h = mCallbackProxy.getBackForwardList() .getCurrentItem(); if (h != null) { - String currentUrl = h.getUrl(); - if (currentUrl != null) { - mDatabase.setFormData(currentUrl, data); + String url = WebTextView.urlForAutoCompleteData(h.getUrl()); + if (url != null) { + mDatabase.setFormData(url, data); } } } |
