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

Unified Diff: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java

Issue 1859163002: android webview: setShouldReuseGlobalForUnownedMainFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test 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/glue/java/src/com/android/webview/chromium/WebViewChromium.java
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
index eea404c5132bbf65eae6d31ac71892c995f7888b..c5a1f3d11811c664799d9ab73047922c7b13711f 100644
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
@@ -234,11 +234,13 @@ class WebViewChromium implements WebViewProvider, WebViewProvider.ScrollDelegate
final boolean isAccessFromFileURLsGrantedByDefault =
mAppTargetSdkVersion < Build.VERSION_CODES.JELLY_BEAN;
final boolean areLegacyQuirksEnabled = mAppTargetSdkVersion < Build.VERSION_CODES.KITKAT;
+ final boolean allowEmptyDocumentPersistence = mAppTargetSdkVersion <= Build.VERSION_CODES.M;
mContentsClientAdapter =
new WebViewContentsClientAdapter(mWebView, mContext, mFactory.getWebViewDelegate());
- mWebSettings = new ContentSettingsAdapter(new AwSettings(
- mContext, isAccessFromFileURLsGrantedByDefault, areLegacyQuirksEnabled));
+ mWebSettings = new ContentSettingsAdapter(
+ new AwSettings(mContext, isAccessFromFileURLsGrantedByDefault,
+ areLegacyQuirksEnabled, allowEmptyDocumentPersistence));
if (mAppTargetSdkVersion < Build.VERSION_CODES.LOLLIPOP) {
// Prior to Lollipop we always allowed third party cookies and mixed content.

Powered by Google App Engine
This is Rietveld 408576698