Commit 2a13e691 authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

Reinstate "no popups during close".

BUG=958419, 844455

Change-Id: I0549227aba40f6fd85b9e7b39e719798cd33e0ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1730774Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#694910}
parent 9e12979f
...@@ -431,9 +431,6 @@ IN_PROC_BROWSER_TEST_F(PopupBlockerBrowserTest, ...@@ -431,9 +431,6 @@ IN_PROC_BROWSER_TEST_F(PopupBlockerBrowserTest,
ASSERT_EQ(1, GetBlockedContentsCount()); ASSERT_EQ(1, GetBlockedContentsCount());
} }
// This feature is being reverted on trunk but an easily-merged CL is needed for
// merging back to stable. https://crbug.com/936080
#if 0
IN_PROC_BROWSER_TEST_F(PopupBlockerBrowserTest, NoPopupsLaunchWhenTabIsClosed) { IN_PROC_BROWSER_TEST_F(PopupBlockerBrowserTest, NoPopupsLaunchWhenTabIsClosed) {
base::CommandLine::ForCurrentProcess()->AppendSwitch( base::CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kDisablePopupBlocking); switches::kDisablePopupBlocking);
...@@ -447,7 +444,6 @@ IN_PROC_BROWSER_TEST_F(PopupBlockerBrowserTest, NoPopupsLaunchWhenTabIsClosed) { ...@@ -447,7 +444,6 @@ IN_PROC_BROWSER_TEST_F(PopupBlockerBrowserTest, NoPopupsLaunchWhenTabIsClosed) {
// Expect no popup. // Expect no popup.
ASSERT_EQ(1u, chrome::GetBrowserCount(browser()->profile())); ASSERT_EQ(1u, chrome::GetBrowserCount(browser()->profile()));
} }
#endif
// This only exists for the AllowPopupsWhenTabIsClosedWithSpecialPolicy test. // This only exists for the AllowPopupsWhenTabIsClosedWithSpecialPolicy test.
// Remove this in Chrome 82. https://crbug.com/937569 // Remove this in Chrome 82. https://crbug.com/937569
......
...@@ -107,14 +107,10 @@ Page* ChromeClient::CreateWindow( ...@@ -107,14 +107,10 @@ Page* ChromeClient::CreateWindow(
WebSandboxFlags sandbox_flags, WebSandboxFlags sandbox_flags,
const FeaturePolicy::FeatureState& opener_feature_state, const FeaturePolicy::FeatureState& opener_feature_state,
const SessionStorageNamespaceId& session_storage_namespace_id) { const SessionStorageNamespaceId& session_storage_namespace_id) {
// This feature is being disabled on trunk but an easily-merged CL is needed for
// merging back to stable. https://crbug.com/936080
#if 0
if (!CanOpenUIElementIfDuringPageDismissal( if (!CanOpenUIElementIfDuringPageDismissal(
frame->Tree().Top(), UIElementType::kPopup, g_empty_string)) { frame->Tree().Top(), UIElementType::kPopup, g_empty_string)) {
return nullptr; return nullptr;
} }
#endif
return CreateWindowDelegate(frame, r, frame_name, features, sandbox_flags, return CreateWindowDelegate(frame, r, frame_name, features, sandbox_flags,
opener_feature_state, opener_feature_state,
......
...@@ -4403,10 +4403,6 @@ crbug.com/888470 external/wpt/referrer-policy/css-integration/child-css/processi ...@@ -4403,10 +4403,6 @@ crbug.com/888470 external/wpt/referrer-policy/css-integration/child-css/processi
crbug.com/888470 virtual/omt-worker-fetch/external/wpt/referrer-policy/css-integration/child-css/internal-import-stylesheet.html [ Failure ] crbug.com/888470 virtual/omt-worker-fetch/external/wpt/referrer-policy/css-integration/child-css/internal-import-stylesheet.html [ Failure ]
crbug.com/888470 virtual/omt-worker-fetch/external/wpt/referrer-policy/css-integration/child-css/processing-instruction.html [ Failure ] crbug.com/888470 virtual/omt-worker-fetch/external/wpt/referrer-policy/css-integration/child-css/processing-instruction.html [ Failure ]
# This behavior (popups during unload) is being reverted on trunk; this test is
# expected to fail when this change is merged back to earlier branches.
crbug.com/936080 external/wpt/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/no_window_open_when_term_nesting_level_nonzero.window.html [ Failure ]
crbug.com/805756 external/wpt/html/semantics/tabular-data/processing-model-1/span-limits.html [ Pass Timeout ] crbug.com/805756 external/wpt/html/semantics/tabular-data/processing-model-1/span-limits.html [ Pass Timeout ]
crbug.com/666993 [ Debug ] external/wpt/requestidlecallback/callback-idle-periods.html [ Pass Timeout ] crbug.com/666993 [ Debug ] external/wpt/requestidlecallback/callback-idle-periods.html [ Pass Timeout ]
......
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