diff options
| author | Jonathan Dixon <joth@google.com> | 2013-02-25 12:29:33 -0800 |
|---|---|---|
| committer | Jonathan Dixon <joth@google.com> | 2013-02-28 13:01:48 -0800 |
| commit | 835b1fcc3193e0860ec33cca1c4cdff31f409473 (patch) | |
| tree | 743e67f4488839da51f73f094e71bc78ab546499 /core/java/android/webkit/WebView.java | |
| parent | 42bd71e0319e8c38f7439849fef3e8a9111006be (diff) | |
| download | frameworks_base-835b1fcc3193e0860ec33cca1c4cdff31f409473.zip frameworks_base-835b1fcc3193e0860ec33cca1c4cdff31f409473.tar.gz frameworks_base-835b1fcc3193e0860ec33cca1c4cdff31f409473.tar.bz2 | |
Deprecate various WebView related methods
WebSettings:
PluginState - plugins depreacted and will not be supported in future.
setRenderPriotity - b/6335436
setLightTouchEnabled - b/7683972 it's s no-op.
setAppCacheMaxSize - has a sensible default and will be obsolete in
future with HTML Quota Management API. b/6236763
WebStorage.setQuotaForOrigin - same as setAppCacheMaxSize
WebView:
clearView, showFindDialog - buggy, can be achieved otherways
savePassword - not useful/usable in practice; see b/5012826
- stock browser used hidden APIs to achieve this feature
WebIconDatabase:
Other than the open() method, this does nothing useful. b/7331507
Change-Id: I01793f7b34978046eb54033477fca2da96e69c2e
Diffstat (limited to 'core/java/android/webkit/WebView.java')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 1321515..f780193 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -601,7 +601,9 @@ public class WebView extends AbsoluteLayout * @param password the password for the given host * @see WebViewDatabase#clearUsernamePassword * @see WebViewDatabase#hasUsernamePassword + * @deprecated Saving passwords in WebView will not be supported in future versions. */ + @Deprecated public void savePassword(String host, String username, String password) { checkThread(); mProvider.savePassword(host, username, password); @@ -998,7 +1000,10 @@ public class WebView extends AbsoluteLayout /** * Clears this WebView so that onDraw() will draw nothing but white background, * and onMeasure() will return 0 if MeasureSpec is not MeasureSpec.EXACTLY. + * @deprecated Use WebView.loadUrl("about:blank") to reliably reset the view state + * and release page resources (including any running JavaScript). */ + @Deprecated public void clearView() { checkThread(); mProvider.clearView(); @@ -1388,7 +1393,11 @@ public class WebView extends AbsoluteLayout * @param showIme if true, show the IME, assuming the user will begin typing. * If false and text is non-null, perform a find all. * @return true if the find dialog is shown, false otherwise + * @deprecated This method does not work reliably on all Android versions; + * implementing a custom find dialog using WebView.findAllAsync() + * provides a more robust solution. */ + @Deprecated public boolean showFindDialog(String text, boolean showIme) { checkThread(); return mProvider.showFindDialog(text, showIme); |
