Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2060)

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwSettings.java

Issue 1859163002: android webview: setShouldReuseGlobalForUnownedMainFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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}.
*/

Powered by Google App Engine
This is Rietveld 408576698