Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1196)

Issue 2773573002: window.open() should gate new tab/new popup based on toolbar visibility. (Closed)

Created:
3 years, 9 months ago by dcheng
Modified:
3 years, 9 months ago
Reviewers:
foolip
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

window.open() should gate new tab/new popup based on toolbar visibility. Previously, Chrome required that toolbar, menubar, scrollbars, status, resizable were all set to enabled to open a window as a new tab rather than a new popup. However, this causes developer frustration if one of window features is accidentally omitted (as it then defaults to disabled). Instead, just use toolbar visibility to determine whether or not window.open() creates a new popup or a new tab, which matches Firefox. BUG=82522 Review-Url: https://codereview.chromium.org/2773573002 Cr-Commit-Position: refs/heads/master@{#459540} Committed: https://chromium.googlesource.com/chromium/src/+/e507bb334d3c66917eec47fbc476ed0a7d62f33f

Patch Set 1 #

Patch Set 2 : Update tests #

Patch Set 3 : wpt test #

Patch Set 4 : Move out of WPT #

Patch Set 5 : buttons #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -13 lines) Patch
A third_party/WebKit/LayoutTests/fast/dom/Window/open-as-popup-vs-tab.html View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 chunk +13 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp View 1 2 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
dcheng
3 years, 9 months ago (2017-03-22 23:40:18 UTC) #4
foolip
A 5-digit bug, cool! LGTM, but I wonder if scripts can tell if they're in ...
3 years, 9 months ago (2017-03-23 12:55:38 UTC) #11
dcheng
As it turns out, they can indirectly by checking toolbar.visible. I added a WPT based ...
3 years, 9 months ago (2017-03-23 18:30:41 UTC) #12
foolip
I tweaked the test to be async tests that insert buttons to click and tried ...
3 years, 9 months ago (2017-03-24 01:26:09 UTC) #17
dcheng
On 2017/03/24 01:26:09, foolip_UTC9 wrote: > I tweaked the test to be async tests that ...
3 years, 9 months ago (2017-03-24 04:54:24 UTC) #18
foolip
On 2017/03/24 04:54:24, dcheng wrote: > On 2017/03/24 01:26:09, foolip_UTC9 wrote: > > I tweaked ...
3 years, 9 months ago (2017-03-24 05:06:15 UTC) #21
dcheng
OK, I added some buttons back, and changed the tests / buttons to use some ...
3 years, 9 months ago (2017-03-24 18:38:28 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2773573002/80001
3 years, 9 months ago (2017-03-24 18:39:20 UTC) #27
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 20:39:15 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/e507bb334d3c66917eec47fbc476...

Powered by Google App Engine
This is Rietveld 408576698