diff --git a/android_webview/common/aw_features.cc b/android_webview/common/aw_features.cc index 46381dbe7e5527..62bd8a4a1946de 100644 --- a/android_webview/common/aw_features.cc +++ b/android_webview/common/aw_features.cc @@ -27,7 +27,7 @@ const base::Feature kWebViewDisplayCutout{"WebViewDisplayCutout", // occurs. kWebViewExtraHeadersSameOriginOnly is stricter; when that's enabled, // this feature has no effect. const base::Feature kWebViewExtraHeadersSameDomainOnly{ - "WebViewExtraHeadersSameDomainOnly", base::FEATURE_DISABLED_BY_DEFAULT}; + "WebViewExtraHeadersSameDomainOnly", base::FEATURE_ENABLED_BY_DEFAULT}; // Only allow extra headers added via loadUrl() to be sent to the original // origin; strip them from the request if a cross-origin redirect occurs. diff --git a/testing/variations/fieldtrial_testing_config.json b/testing/variations/fieldtrial_testing_config.json index 42d26252cd00f5..9069f6337fe60c 100644 --- a/testing/variations/fieldtrial_testing_config.json +++ b/testing/variations/fieldtrial_testing_config.json @@ -8056,21 +8056,6 @@ ] } ], - "WebViewHeaderInjection": [ - { - "platforms": [ - "android_webview" - ], - "experiments": [ - { - "name": "SameDomainOnly", - "enable_features": [ - "WebViewExtraHeadersSameDomainOnly" - ] - } - ] - } - ], "WebViewZeroCopyVideo": [ { "platforms": [ diff --git a/tools/metrics/histograms/histograms_xml/android/histograms.xml b/tools/metrics/histograms/histograms_xml/android/histograms.xml index 32e1168a44c142..d0998757e320ff 100644 --- a/tools/metrics/histograms/histograms_xml/android/histograms.xml +++ b/tools/metrics/histograms/histograms_xml/android/histograms.xml @@ -2369,7 +2369,7 @@ reviews. Googlers can read more about this at go/gwsq-gerrit. + enum="WebViewExtraHeadersRedirect" expires_after="2021-02-14"> torne@chromium.org src/android_webview/OWNERS