Commit 0f285c2e authored by Lily Chen's avatar Lily Chen Committed by Chromium LUCI CQ

Enable modern SameSite cookies on Android WebView for apps targeting S+

Bug: 986319
Change-Id: I2e9beaca7ed07d012fc38c248198bfe72057545b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2615482Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Commit-Queue: Lily Chen <chlily@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841501}
parent 843872e1
...@@ -316,6 +316,12 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider { ...@@ -316,6 +316,12 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider {
cl.appendSwitch(AwSwitches.WEBVIEW_SANDBOXED_RENDERER); cl.appendSwitch(AwSwitches.WEBVIEW_SANDBOXED_RENDERER);
} }
// Enable modern SameSite cookie behavior if the app targets at least S.
if (BuildInfo.targetsAtLeastS()) {
CommandLine cl = CommandLine.getInstance();
cl.appendSwitch(AwSwitches.WEBVIEW_ENABLE_MODERN_COOKIE_SAME_SITE);
}
int applicationFlags = ctx.getApplicationInfo().flags; int applicationFlags = ctx.getApplicationInfo().flags;
boolean isAppDebuggable = (applicationFlags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; boolean isAppDebuggable = (applicationFlags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
boolean isOsDebuggable = BuildInfo.isDebugAndroid(); boolean isOsDebuggable = BuildInfo.isDebugAndroid();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment