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

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

Issue 2776073002: Workaround for Samsung email issues (Closed)
Patch Set: add a comment to web_preferences.h Created 3 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package com.android.webview.chromium; 5 package com.android.webview.chromium;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.Intent; 10 import android.content.Intent;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 167 }
168 } 168 }
169 169
170 final boolean isAccessFromFileURLsGrantedByDefault = 170 final boolean isAccessFromFileURLsGrantedByDefault =
171 mAppTargetSdkVersion < Build.VERSION_CODES.JELLY_BEAN; 171 mAppTargetSdkVersion < Build.VERSION_CODES.JELLY_BEAN;
172 final boolean areLegacyQuirksEnabled = mAppTargetSdkVersion < Build.VERS ION_CODES.KITKAT; 172 final boolean areLegacyQuirksEnabled = mAppTargetSdkVersion < Build.VERS ION_CODES.KITKAT;
173 final boolean allowEmptyDocumentPersistence = mAppTargetSdkVersion <= Bu ild.VERSION_CODES.M; 173 final boolean allowEmptyDocumentPersistence = mAppTargetSdkVersion <= Bu ild.VERSION_CODES.M;
174 final boolean allowGeolocationOnInsecureOrigins = 174 final boolean allowGeolocationOnInsecureOrigins =
175 mAppTargetSdkVersion <= Build.VERSION_CODES.M; 175 mAppTargetSdkVersion <= Build.VERSION_CODES.M;
176 176
177 // https://crbug.com/698752
178 final boolean doNotUpdateSelectionOnMutatingSelectionRange =
179 mAppTargetSdkVersion <= Build.VERSION_CODES.M;
180
177 mContentsClientAdapter = mFactory.createWebViewContentsClientAdapter(mWe bView, mContext); 181 mContentsClientAdapter = mFactory.createWebViewContentsClientAdapter(mWe bView, mContext);
178 mWebSettings = new ContentSettingsAdapter( 182 mWebSettings = new ContentSettingsAdapter(new AwSettings(mContext,
179 new AwSettings(mContext, isAccessFromFileURLsGrantedByDefault, 183 isAccessFromFileURLsGrantedByDefault, areLegacyQuirksEnabled,
180 areLegacyQuirksEnabled, allowEmptyDocumentPersistence, 184 allowEmptyDocumentPersistence, allowGeolocationOnInsecureOrigins ,
181 allowGeolocationOnInsecureOrigins)); 185 doNotUpdateSelectionOnMutatingSelectionRange));
182 186
183 if (mAppTargetSdkVersion < Build.VERSION_CODES.LOLLIPOP) { 187 if (mAppTargetSdkVersion < Build.VERSION_CODES.LOLLIPOP) {
184 // Prior to Lollipop we always allowed third party cookies and mixed content. 188 // Prior to Lollipop we always allowed third party cookies and mixed content.
185 mWebSettings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_AL LOW); 189 mWebSettings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_AL LOW);
186 mWebSettings.setAcceptThirdPartyCookies(true); 190 mWebSettings.setAcceptThirdPartyCookies(true);
187 mWebSettings.getAwSettings().setZeroLayoutHeightDisablesViewportQuir k(true); 191 mWebSettings.getAwSettings().setZeroLayoutHeightDisablesViewportQuir k(true);
188 } 192 }
189 193
190 if (mShouldDisableThreadChecking) disableThreadChecking(); 194 if (mShouldDisableThreadChecking) disableThreadChecking();
191 195
(...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 mAwContents.extractSmartClipData(x, y, width, height); 2277 mAwContents.extractSmartClipData(x, y, width, height);
2274 } 2278 }
2275 2279
2276 // Implements SmartClipProvider 2280 // Implements SmartClipProvider
2277 @Override 2281 @Override
2278 public void setSmartClipResultHandler(final Handler resultHandler) { 2282 public void setSmartClipResultHandler(final Handler resultHandler) {
2279 checkThread(); 2283 checkThread();
2280 mAwContents.setSmartClipResultHandler(resultHandler); 2284 mAwContents.setSmartClipResultHandler(resultHandler);
2281 } 2285 }
2282 } 2286 }
OLDNEW
« 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