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 523cbe944a7be966cedd0ebab518ea36f658a33a..392faac4fe8bfba67159e53fd57980b529a85ded 100644 |
--- a/android_webview/java/src/org/chromium/android_webview/AwSettings.java |
+++ b/android_webview/java/src/org/chromium/android_webview/AwSettings.java |
@@ -95,6 +95,7 @@ public class AwSettings { |
private final boolean mSupportLegacyQuirks; |
private final boolean mAllowEmptyDocumentPersistence; |
private final boolean mAllowGeolocationOnInsecureOrigins; |
+ private final boolean mDoNotUpdateSelectionOnMutatingSelectionRange; |
private final boolean mPasswordEchoEnabled; |
@@ -205,11 +206,10 @@ public class AwSettings { |
boolean supportsDoubleTapZoom, boolean supportsMultiTouchZoom); |
} |
- public AwSettings(Context context, |
- boolean isAccessFromFileURLsGrantedByDefault, |
- boolean supportsLegacyQuirks, |
- boolean allowEmptyDocumentPersistence, |
- boolean allowGeolocationOnInsecureOrigins) { |
+ public AwSettings(Context context, boolean isAccessFromFileURLsGrantedByDefault, |
+ boolean supportsLegacyQuirks, boolean allowEmptyDocumentPersistence, |
+ boolean allowGeolocationOnInsecureOrigins, |
+ boolean doNotUpdateSelectionOnMutatingSelectionRange) { |
boolean hasInternetPermission = context.checkPermission( |
android.Manifest.permission.INTERNET, |
Process.myPid(), |
@@ -240,6 +240,8 @@ public class AwSettings { |
mSupportLegacyQuirks = supportsLegacyQuirks; |
mAllowEmptyDocumentPersistence = allowEmptyDocumentPersistence; |
mAllowGeolocationOnInsecureOrigins = allowGeolocationOnInsecureOrigins; |
+ mDoNotUpdateSelectionOnMutatingSelectionRange = |
+ doNotUpdateSelectionOnMutatingSelectionRange; |
} |
// Defer initializing the native side until a native WebContents instance is set. |
} |
@@ -1261,6 +1263,12 @@ public class AwSettings { |
return mAllowGeolocationOnInsecureOrigins; |
} |
+ @CalledByNative |
+ private boolean getDoNotUpdateSelectionOnMutatingSelectionRange() { |
+ assert Thread.holdsLock(mAwSettingsLock); |
+ return mDoNotUpdateSelectionOnMutatingSelectionRange; |
+ } |
+ |
/** |
* See {@link android.webkit.WebSettings#setUseWideViewPort}. |
*/ |