Closed
Bug 1419960
Opened 7 years ago
Closed 7 years ago
Make the noopener window feature not affect whether other window features are enabled
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: annyG)
Details
(Keywords: dev-doc-complete, site-compat)
Attachments
(1 file)
The spec is not making progress in https://github.com/whatwg/html/issues/1902 and it's causing sites real problems (e.g. see bug 1416728 comment 25). We should just unilaterally change our behavior here.
Comment 1•7 years ago
|
||
I agree - the current behaviour is unusable. We should make `window.open(url, "_blank", "noopener")` act exactly like `window.open(url, "_blank")` except that opener is not set.
Updated•7 years ago
|
Priority: -- → P2
Assignee | ||
Updated•7 years ago
|
Assignee: bzbarsky → agakhokidze
Assignee | ||
Comment 2•7 years ago
|
||
MozReview-Commit-ID: 538GrCw85g
Comment 3•7 years ago
|
||
Comment on attachment 8992238 [details]
Bug 1419960 - Make the noopener window feature not affect whether other window features are enabled, r=nika
:Nika Layzell has approved the revision.
https://phabricator.services.mozilla.com/D2150
Attachment #8992238 -
Flags: review+
Pushed by nlayzell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7122e56941ef
Make the noopener window feature not affect whether other window features are enabled, r=nika
Reporter | ||
Comment 5•7 years ago
|
||
Please send an intent to ship for this?
We should probably do something similar for noreferrer too, right?
Flags: needinfo?(nika)
Comment 6•7 years ago
|
||
(In reply to Boris Zbarsky [:bz] (no decent commit message means r-) from comment #5)
> Please send an intent to ship for this?
Anny, would you write up an intent to ship (https://wiki.mozilla.org/ExposureGuidelines#Intent_to_ship) - I can help you look over it before we send it to dev-platform.
> We should probably do something similar for noreferrer too, right?
IIRC we don't allow "noreferrer" as a window.open flag, but rather only allow it as a rel="" attribute. When it's used in that way it's already stripped out of the features string by nsDocShell::InternalLoad.
Flags: needinfo?(nika) → needinfo?(agakhokidze)
Reporter | ||
Comment 7•7 years ago
|
||
> IIRC we don't allow "noreferrer" as a window.open flag
Ah, ok. I saw it in the test the patch for this bug modifies, but maybe there it's basically acting just like "nosuchflag" would...
Comment 8•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Assignee | ||
Comment 9•7 years ago
|
||
I sent out an Intent to ship email to dev-platform (also see here https://groups.google.com/forum/#!topic/mozilla.dev.platform/6cTk_b1l6LE)
Flags: needinfo?(agakhokidze)
Comment 11•6 years ago
|
||
Posted the site compatibility note: https://www.fxsitecompat.com/en-CA/docs/2018/noopener-option-for-window-open-no-longer-affects-other-window-features/
Keywords: site-compat
Comment 12•6 years ago
|
||
Filed PR to update compat table for rel="noopener":
https://github.com/mdn/browser-compat-data/pull/2748
And updated:
https://developer.mozilla.org/en-US/docs/Web/API/Window/opener
https://developer.mozilla.org/en-US/docs/Web/API/Window/open (noopener under window features)
And updated Firefox 63 for developers.
Keywords: dev-doc-needed → dev-doc-complete
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•