Commit 599f7bdf authored by Carlos IL's avatar Carlos IL Committed by Commit Bot

Reland "Reland "Enable passive mixed content warning by default""

This reverts commit 0b623dbf.

Reason for revert: Still can't reproduce out of the bot.
Disabling the test with the proper feature flag so the flag can be
enabled on ToT since this has already launched (and the problem seems
test specific). Will work on fix for the test in a separate CL.
TBR-ing, since this is identical to the last reland, except using the
correct flag to disable test.

Original change's description:
> Revert "Reland "Enable passive mixed content warning by default""
>
> This reverts commit a4abe593.
>
> Reason for revert: [sheriff]:
> Consistent failures on linux-chromeos-chrome:
> https://ci.chromium.org/p/chrome/builders/ci/linux-chromeos-chrome
> First failed run:
> https://ci.chromium.org/p/chrome/builders/ci/linux-chromeos-chrome/3306
>
> Original change's description:
> > Reland "Enable passive mixed content warning by default"
> >
> > This reverts commit 562af1be.
> >
> > Reason for revert: Failing test was disabled since it should run with autoupgrades disabled, will investigate and fix why InitAndDisableFeatures is not doing that separately
> >
> > Original change's description:
> > > Revert "Enable passive mixed content warning by default"
> > >
> > > This reverts commit 0a37869a.
> > >
> > > Reason for revert: Causing failure of DidChangeVisibleSecurityStateTestWithAutoupgradesDisabled.DidChangeVisibleSecurityStateObserver in browser_tests on linux-chromeos-chrome
> > > Example failure: https://ci.chromium.org/p/chrome/builders/ci/linux-chromeos-chrome/3194
> > >
> > > Original change's description:
> > > > Enable passive mixed content warning by default
> > > >
> > > > Sets the feature to enabled by default and removes the config from
> > > > fieldtrial_testing_config.json in preparation for launch.
> > > >
> > > > Bug: 1025276
> > > > Change-Id: Iffcdd2153491de25b7038a609776255bbdacf2ac
> > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2053024
> > > > Commit-Queue: Carlos IL <carlosil@chromium.org>
> > > > Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
> > > > Reviewed-by: Emily Stark <estark@chromium.org>
> > > > Auto-Submit: Carlos IL <carlosil@chromium.org>
> > > > Cr-Commit-Position: refs/heads/master@{#741506}
> > >
> > > TBR=rkaplow@chromium.org,estark@chromium.org,carlosil@chromium.org
> > >
> > > # Not skipping CQ checks because original CL landed > 1 day ago.
> > >
> > > Bug: 1025276
> > > Change-Id: I20e9dc38d83036c7b17d91de24c23ebae3049de9
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2058970
> > > Reviewed-by: Bret Sepulveda <bsep@chromium.org>
> > > Commit-Queue: Bret Sepulveda <bsep@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#741860}
> >
> > TBR=rkaplow@chromium.org,estark@chromium.org,bsep@chromium.org,carlosil@chromium.org
> >
> > # Not skipping CQ checks because original CL landed > 1 day ago.
> >
> > Bug: 1025276
> > Change-Id: I9e2043fc150b9225bc32537b0cee669f1836802a
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2062671
> > Commit-Queue: Carlos IL <carlosil@chromium.org>
> > Reviewed-by: Emily Stark <estark@chromium.org>
> > Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#742366}
>
> TBR=rkaplow@chromium.org,estark@chromium.org,bsep@chromium.org,carlosil@chromium.org
>
> Change-Id: I554708d53c87488e8f199c52b32dd2d62471bb1d
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 1025276
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2062416
> Reviewed-by: Sergey Poromov <poromov@chromium.org>
> Commit-Queue: Sergey Poromov <poromov@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#742551}

TBR=rkaplow@chromium.org,estark@chromium.org,bsep@chromium.org,poromov@chromium.org,carlosil@chromium.org

Change-Id: Ica754c5662e6165dfdd535acbf0833d8b6467082

Bug: 1025276
Change-Id: Ica754c5662e6165dfdd535acbf0833d8b6467082
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2065336Reviewed-by: default avatarCarlos IL <carlosil@chromium.org>
Commit-Queue: Carlos IL <carlosil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#743703}
parent 1c521e73
......@@ -1632,6 +1632,12 @@ class DidChangeVisibleSecurityStateTestWithAutoupgradesDisabled
IN_PROC_BROWSER_TEST_F(
DidChangeVisibleSecurityStateTestWithAutoupgradesDisabled,
DidChangeVisibleSecurityStateObserver) {
// TODO(crbug.com/1052731, carlosil): This test is failing on some bots with
// the passive mixed content warning flag active, disabling it for now.
if (base::FeatureList::IsEnabled(
security_state::features::kPassiveMixedContentWarning)) {
return;
}
ASSERT_TRUE(embedded_test_server()->Start());
ASSERT_TRUE(https_server_.Start());
......
......@@ -22,7 +22,7 @@ const base::Feature kSafetyTipUI{"SafetyTip",
base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kPassiveMixedContentWarning{
"PassiveMixedContentWarning", base::FEATURE_DISABLED_BY_DEFAULT};
"PassiveMixedContentWarning", base::FEATURE_ENABLED_BY_DEFAULT};
} // namespace features
} // namespace security_state
......@@ -303,7 +303,11 @@ TEST(SecurityStateTest, MixedContentWithPolicyCertificate) {
// Verify that passive mixed content downgrades the security level.
helper.set_contained_mixed_form(false);
helper.set_displayed_mixed_content(true);
EXPECT_EQ(NONE, helper.GetSecurityLevel());
SecurityLevel expected_passive_level =
base::FeatureList::IsEnabled(features::kPassiveMixedContentWarning)
? WARNING
: NONE;
EXPECT_EQ(expected_passive_level, helper.GetSecurityLevel());
// Ensure that active mixed content downgrades the security level.
helper.set_contained_mixed_form(false);
......
......@@ -4245,25 +4245,6 @@
]
}
],
"PassiveMixedContentWarning": [
{
"platforms": [
"android",
"chromeos",
"linux",
"mac",
"windows"
],
"experiments": [
{
"name": "Enabled",
"enable_features": [
"PassiveMixedContentWarning"
]
}
]
}
],
"PauseBrowserInitiatedHeavyTrafficForP2P": [
{
"platforms": [
......
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