-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support "noreferrer" for window.open() #4331
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but it would be quite nice if this were separate commits: one for the cleanup to properly include noreferrer in the link processing model, and one for the new feature added to window.open().
651bb0b
to
b35bef8
Compare
Splitting in commits has happened. Still needed:
|
b35bef8
to
aaf69cb
Compare
I've amended the commits to place the note before the example and hide it from the developer edition. |
@zcorpan @cdumez thoughts as to how to best test this? I've found |
Hmmm. Boolean features should parse the same. Maybe have a common .js file with a function that you pass the URL to open, the feature name to be tested (to be mangled), and a callback to check the result? |
Thanks, that was more work than I wanted to do, but probably for the better: web-platform-tests/wpt#15352. |
aaf69cb
to
a6b3d9a
Compare
cc @whatwg/documentation |
… a=testonly Automatic update from web-platform-tests HTML: window.open("", "", "noreferrer") For whatwg/html#4331. -- wpt-commits: 22abb9c5c4a78f5deecc49417f5e57ba27f404cb wpt-pr: 15352
… a=testonly Automatic update from web-platform-tests HTML: window.open("", "", "noreferrer") For whatwg/html#4331. -- wpt-commits: 22abb9c5c4a78f5deecc49417f5e57ba27f404cb wpt-pr: 15352
… a=testonly Automatic update from web-platform-tests HTML: window.open("", "", "noreferrer") For whatwg/html#4331. -- wpt-commits: 22abb9c5c4a78f5deecc49417f5e57ba27f404cb wpt-pr: 15352
… a=testonly Automatic update from web-platform-tests HTML: window.open("", "", "noreferrer") For whatwg/html#4331. -- wpt-commits: 22abb9c5c4a78f5deecc49417f5e57ba27f404cb wpt-pr: 15352
This change is following specs below. 1) whatwg/html#4331 2) https://html.spec.whatwg.org/multipage/window-object.html And this CL includes the behavior change below. When noreferrer is specified, the created window is not shown in app popup form. This behavior matches with Chromium and Firefox's handling way for "noopener". Bug: 931207 Change-Id: Ia1c8f99dc6936952cc70bfa21d1eece741b7edcc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1541376 Reviewed-by: Kent Tamura <[email protected]> Reviewed-by: Kinuko Yasuda <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Hayato Ito <[email protected]> Commit-Queue: Joonghun Park <[email protected]> Cr-Commit-Position: refs/heads/master@{#652063} Former-commit-id: efb60af1f7facfc5c4cb2ea955e7c1e781a3d15e
… a=testonly Automatic update from web-platform-tests HTML: window.open("", "", "noreferrer") For whatwg/html#4331. -- wpt-commits: 22abb9c5c4a78f5deecc49417f5e57ba27f404cb wpt-pr: 15352 UltraBlame original commit: 5c6bfad36ca045e19786e7eb97104d31a04d81fd
… a=testonly Automatic update from web-platform-tests HTML: window.open("", "", "noreferrer") For whatwg/html#4331. -- wpt-commits: 22abb9c5c4a78f5deecc49417f5e57ba27f404cb wpt-pr: 15352 UltraBlame original commit: 154f3e3e9fc6ad51a59f20321925a6bcbc14a6d8
… a=testonly Automatic update from web-platform-tests HTML: window.open("", "", "noreferrer") For whatwg/html#4331. -- wpt-commits: 22abb9c5c4a78f5deecc49417f5e57ba27f404cb wpt-pr: 15352 UltraBlame original commit: 5c6bfad36ca045e19786e7eb97104d31a04d81fd
… a=testonly Automatic update from web-platform-tests HTML: window.open("", "", "noreferrer") For whatwg/html#4331. -- wpt-commits: 22abb9c5c4a78f5deecc49417f5e57ba27f404cb wpt-pr: 15352 UltraBlame original commit: 154f3e3e9fc6ad51a59f20321925a6bcbc14a6d8
… a=testonly Automatic update from web-platform-tests HTML: window.open("", "", "noreferrer") For whatwg/html#4331. -- wpt-commits: 22abb9c5c4a78f5deecc49417f5e57ba27f404cb wpt-pr: 15352 UltraBlame original commit: 5c6bfad36ca045e19786e7eb97104d31a04d81fd
… a=testonly Automatic update from web-platform-tests HTML: window.open("", "", "noreferrer") For whatwg/html#4331. -- wpt-commits: 22abb9c5c4a78f5deecc49417f5e57ba27f404cb wpt-pr: 15352 UltraBlame original commit: 154f3e3e9fc6ad51a59f20321925a6bcbc14a6d8
And cleanup handling of "noreferrer" keyword when following hyperlinks.
Tests: ...
Fixes #4111.
/links.html ( diff )
/window-object.html ( diff )