From 2bca22b2a58f14985b1eee1acee73bce95715d49 Mon Sep 17 00:00:00 2001 From: Selim Gurun Date: Thu, 28 Feb 2013 17:47:21 -0800 Subject: Clarify the API documentation for WebSQL database. Bug: 8231270 WebSQL database is disabled by default. And setting change to enable it must precede the first url navigation. This change is to clarify this behavior. Change-Id: Ic0aab764821daece83f3482b30df4bebc7ff1f37 --- core/java/android/webkit/WebSettings.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index 728bcd3e545d..92b028e0049c 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -1103,6 +1103,11 @@ public abstract class WebSettings { * false. See also {@link #setDatabasePath} for how to correctly set up the * database storage API. * + * This setting is global in effect, across all WebView instances in a process. + * Note you should only modify this setting prior to making any WebView + * page load within a given process, as the WebView implementation may ignore + * changes to this setting after that point. + * * @param flag true if the WebView should use the database storage API */ public synchronized void setDatabaseEnabled(boolean flag) { -- cgit v1.2.3-59-g8ed1b