Commit 060c246f authored by Emily Stark's avatar Emily Stark Committed by Commit Bot

Disable HTTP auth committed interstitials by default

Committed interstitials for HTTP auth renders the 401 body underneath
the auth prompt. This has proven to be problematic in some cases (see
bug). This CL disables committed interstitials for HTTP auth by
default while I work on a fix for avoiding rendering the 401 body.

Bug: 992639
Change-Id: I63195a66c4ad81452e24d260afdc7dd938eab769
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1756638Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
Commit-Queue: Emily Stark <estark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#687695}
parent 4f8c3c3d
......@@ -34,6 +34,7 @@
#include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/ui_test_utils.h"
......@@ -1428,6 +1429,10 @@ IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, SlowPageFill) {
// a new tab with a URL for which the embedded test server issues a basic auth
// challenge.
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, NoLastLoadGoodLastLoad) {
base::test::ScopedFeatureList scoped_feature_list;
scoped_feature_list.InitAndEnableFeature(
::features::kHTTPAuthCommittedInterstitials);
// We must use a new test server here because embedded_test_server() is
// already started at this point and adding the request handler to it would
// not be thread safe.
......@@ -2956,6 +2961,10 @@ IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, BasicAuthSeparateRealms) {
}
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, ProxyAuthFilling) {
base::test::ScopedFeatureList scoped_feature_list;
scoped_feature_list.InitAndEnableFeature(
::features::kHTTPAuthCommittedInterstitials);
GURL test_page = embedded_test_server()->GetURL("/auth-basic");
// Save credentials for "testrealm" in the store.
......@@ -3639,6 +3648,10 @@ IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest,
// password manager works even though it should be disabled on the previous
// page.
IN_PROC_BROWSER_TEST_F(PasswordManagerBrowserTest, CorrectEntryForHttpAuth) {
base::test::ScopedFeatureList scoped_feature_list;
scoped_feature_list.InitAndEnableFeature(
::features::kHTTPAuthCommittedInterstitials);
for (bool new_parser_enabled : {false, true}) {
SCOPED_TRACE(testing::Message("new_parser_enabled=") << new_parser_enabled);
base::test::ScopedFeatureList scoped_feature_list;
......
......@@ -383,7 +383,7 @@ const base::Feature kHappinessTrackingSurveysForDesktop{
// Enables committed error pages instead of transient navigation entries for
// HTTP auth interstitial pages (i.e. HTTP auth prompts initiated cross-origin).
const base::Feature kHTTPAuthCommittedInterstitials{
"HTTPAuthCommittedInterstitials", base::FEATURE_ENABLED_BY_DEFAULT};
"HTTPAuthCommittedInterstitials", base::FEATURE_DISABLED_BY_DEFAULT};
// Enables navigation suggestions UI for lookalike URLs (e.g. internationalized
// domain names that are visually similar to popular domains or to domains with
......
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