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

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

Issue 2776073002: Workaround for Samsung email issues (Closed)
Patch Set: switched to disabling tkent@'s CL Created 3 years, 9 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
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwSettings.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66779333e88e2b0175f4f0dcb441510308e16486..67a7ff80445ff0dd4d7d6781e46ae55d27c3b719 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
@@ -174,11 +174,16 @@ class WebViewChromium implements WebViewProvider, WebViewProvider.ScrollDelegate
final boolean allowGeolocationOnInsecureOrigins =
mAppTargetSdkVersion <= Build.VERSION_CODES.M;
+ final String samsungEmailPackageId = "com.samsung.android.email.provider";
aelias_OOO_until_Jul13 2017/03/31 23:40:21 I don't think an APK name check is called for here
Changwan Ryu 2017/04/01 00:07:56 Done. Also checking with Samsung about the package
+ final boolean doNotUpdateSelectionOnMutatingSelectionRange =
+ samsungEmailPackageId.equals(mContext.getPackageName())
+ && mAppTargetSdkVersion <= Build.VERSION_CODES.M;
aelias_OOO_until_Jul13 2017/03/31 23:25:41 Why M and below? I would've expected N and below.
Changwan Ryu 2017/03/31 23:28:10 Sorry I wasn't super clear about this. Samsung's i
aelias_OOO_until_Jul13 2017/03/31 23:40:21 OK sounds good. Targeting M is somewhat better if
+
mContentsClientAdapter = mFactory.createWebViewContentsClientAdapter(mWebView, mContext);
- mWebSettings = new ContentSettingsAdapter(
- new AwSettings(mContext, isAccessFromFileURLsGrantedByDefault,
- areLegacyQuirksEnabled, allowEmptyDocumentPersistence,
- allowGeolocationOnInsecureOrigins));
+ mWebSettings = new ContentSettingsAdapter(new AwSettings(mContext,
+ isAccessFromFileURLsGrantedByDefault, areLegacyQuirksEnabled,
+ allowEmptyDocumentPersistence, allowGeolocationOnInsecureOrigins,
+ doNotUpdateSelectionOnMutatingSelectionRange));
if (mAppTargetSdkVersion < Build.VERSION_CODES.LOLLIPOP) {
// Prior to Lollipop we always allowed third party cookies and mixed content.
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwSettings.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698