| 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 1f5e0e4af395d919058147b576733107a5bc77f8..0356d82890e9351197e1423f291ec2b04f96fb54 100644
|
| --- a/android_webview/java/src/org/chromium/android_webview/AwSettings.java
|
| +++ b/android_webview/java/src/org/chromium/android_webview/AwSettings.java
|
| @@ -98,6 +98,7 @@ public class AwSettings {
|
| private final boolean mSupportLegacyQuirks;
|
| private final boolean mAllowEmptyDocumentPersistence;
|
| private final boolean mAllowGeolocationOnInsecureOrigins;
|
| + private final boolean mDoNotUpdateSelectionOnMutatingSelectionRange;
|
|
|
| private final boolean mPasswordEchoEnabled;
|
|
|
| @@ -208,11 +209,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(),
|
| @@ -243,6 +243,8 @@ public class AwSettings {
|
| mSupportLegacyQuirks = supportsLegacyQuirks;
|
| mAllowEmptyDocumentPersistence = allowEmptyDocumentPersistence;
|
| mAllowGeolocationOnInsecureOrigins = allowGeolocationOnInsecureOrigins;
|
| + mDoNotUpdateSelectionOnMutatingSelectionRange =
|
| + doNotUpdateSelectionOnMutatingSelectionRange;
|
| }
|
| // Defer initializing the native side until a native WebContents instance is set.
|
| }
|
| @@ -1264,6 +1266,12 @@ public class AwSettings {
|
| return mAllowGeolocationOnInsecureOrigins;
|
| }
|
|
|
| + @CalledByNative
|
| + private boolean getDoNotUpdateSelectionOnMutatingSelectionRange() {
|
| + assert Thread.holdsLock(mAwSettingsLock);
|
| + return mDoNotUpdateSelectionOnMutatingSelectionRange;
|
| + }
|
| +
|
| /**
|
| * See {@link android.webkit.WebSettings#setUseWideViewPort}.
|
| */
|
|
|