New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 702178 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Named browsing context _blank, _parent, _top, _self should not be case-sensitive

Reported by l...@bocoup.com, Mar 16 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1. `window.open` a document into `_bLAnk`.
2. `window.open` a document into `_bLAnk`.

What is the expected behavior?
The browser should create two new browsing contexts.

What went wrong?
Only one new browsing context is created.

The browser is treating `_bLAnk` (or other case-mixing of `_blank`) as a new, named, non-keyword browsing context. The second `window.open` call is reusing the browsing context (`_bLAnk`) created by the first `window.open`.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 56.0.2924.87  Channel: n/a
OS Version: OS X 10.11.6
Flash Version: 

Relevant HTML spec section 7.1.5 Named Browsing Contexts: https://html.spec.whatwg.org/#browsing-context-names

Relevant web-platform-tests tests: https://github.com/w3c/web-platform-tests/pull/5145
 

Comment 1 by rsesek@chromium.org, Mar 16 2017

Components: Blink>JavaScript
Cc: krajshree@chromium.org
Labels: Needs-Feedback
Reporter@ - Thanks for filing the issue...!!

Could you please provide a sample html file to test this issue.

This will help us in triaging the issue further.

Thanks...!!
Components: -Blink>JavaScript Blink>HTML Blink>WindowDialog
Labels: -Needs-Feedback OS-Windows
Status: Untriaged (was: Unconfirmed)
Here is a test case -
https://jsfiddle.net/8v7ots9x/

Only Firefox gets this right.

Comment 4 by phistuck@gmail.com, Mar 17 2017

Filed an HTML issue -
https://github.com/whatwg/html/issues/2443

Comment 5 by zcorpan@gmail.com, Mar 27 2017

Concluded in https://github.com/whatwg/html/issues/2443#issuecomment-289043039 that case-insensitive is better.

Comment 6 by tkent@chromium.org, Mar 27 2017

Labels: Hotlist-GoodFirstBug
Status: Available (was: Untriaged)
I will have a look at this. The failing test is located here: http://w3c-test.org/html/browsers/windows/browsing-context-names/browsing-context-_blank.html

Comment 9 Deleted

Comment 11 by tkent@chromium.org, Mar 30 2017

Status: Started (was: Available)
Summary: Named browsing context _blank, _parent, _top, _self should not be case-sensitive (was: Named browsing context _blank should not be case-sensitive)

Comment 12 by tkent@chromium.org, Mar 30 2017

 Issue 705646  has been merged into this issue.

Comment 13 by tkent@chromium.org, Mar 30 2017

 Issue 702188  has been merged into this issue.

Comment 15 by tkent@chromium.org, Mar 31 2017

Labels: M-59
Status: Fixed (was: Started)
Labels: TE-Verified-M59 TE-Verified-59.0.3061.3
Tested the issue on Windows 7 and Mac 10.12.3 using chrome version 59.0.3061.3 with the sample test file from comment #3.Observed all the links opened in new tab only.

Please find the attached screen cast for the same.
Adding TE-Verified labels.

Thanks,
702178.mp4
848 KB View Download

Sign in to add a comment