| Index: android_webview/java/src/org/chromium/android_webview/AwSettings.java
|
| diff --git a/android_webview/java/src/org/chromium/android_webview/AwSettings.java b/android_webview/java/src/org/chromium/android_webview/AwSettings.java
|
| index bf7d2418097da7210e9182e17ced3fa836686451..a7f1afdb548f7774045c11f98f9c3292ebb438e2 100644
|
| --- a/android_webview/java/src/org/chromium/android_webview/AwSettings.java
|
| +++ b/android_webview/java/src/org/chromium/android_webview/AwSettings.java
|
| @@ -96,6 +96,7 @@ public class AwSettings {
|
| private boolean mAcceptThirdPartyCookies = false;
|
|
|
| private final boolean mSupportLegacyQuirks;
|
| + private final boolean mAllowEmptyDocumentPersistence;
|
|
|
| private final boolean mPasswordEchoEnabled;
|
|
|
| @@ -208,7 +209,8 @@ public class AwSettings {
|
|
|
| public AwSettings(Context context,
|
| boolean isAccessFromFileURLsGrantedByDefault,
|
| - boolean supportsLegacyQuirks) {
|
| + boolean supportsLegacyQuirks,
|
| + boolean allowEmptyDocumentPersistence) {
|
| boolean hasInternetPermission = context.checkPermission(
|
| android.Manifest.permission.INTERNET,
|
| Process.myPid(),
|
| @@ -237,6 +239,7 @@ public class AwSettings {
|
| mTextSizePercent *= context.getResources().getConfiguration().fontScale;
|
|
|
| mSupportLegacyQuirks = supportsLegacyQuirks;
|
| + mAllowEmptyDocumentPersistence = allowEmptyDocumentPersistence;
|
| }
|
| // Defer initializing the native side until a native WebContents instance is set.
|
| }
|
| @@ -1246,6 +1249,12 @@ public class AwSettings {
|
| return mSupportLegacyQuirks;
|
| }
|
|
|
| + @CalledByNative
|
| + private boolean getAllowEmptyDocumentPersistenceLocked() {
|
| + assert Thread.holdsLock(mAwSettingsLock);
|
| + return mAllowEmptyDocumentPersistence;
|
| + }
|
| +
|
| /**
|
| * See {@link android.webkit.WebSettings#setUseWideViewPort}.
|
| */
|
|
|