Visitar URL original
Set window type to "new with no opener" always when noopener is set by TimvdLippe · Pull Request #13171 · whatwg/html · GitHub
Skip to content

Set window type to "new with no opener" always when noopener is set - #13171

Draft
TimvdLippe wants to merge 2 commits into
whatwg:mainfrom
TimvdLippe:fix-noopener-without-coep
Draft

TimvdLippe wants to merge 2 commits into
whatwg:mainfrom
TimvdLippe:fix-noopener-without-coep

Conversation

@TimvdLippe

@TimvdLippe TimvdLippe commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

The window type would only be set if the opener policy would do so.
However, while that policy would imply noopener, the window type should also be set to "new with no opener" if noopener is passed as true in this algorithm.

Discovered while implementing the spec in servo/servo#49501

(See WHATWG Working Mode: Changes for more details.)


/document-sequences.html ( diff )

The window type would only be set if the opener policy would do so.
However, while that policy would imply noopener, the window type
should always be set to "new with no opener" if noopener is also passed
as true in this algorithm.
@TimvdLippe

Copy link
Copy Markdown
Contributor Author

Hm, this might be wrong after all. It could be that step 18 of https://html.spec.whatwg.org/multipage/nav-history-apis.html#window-open-steps already handles it and I missed that before. Need to investigate more.

@TimvdLippe
TimvdLippe marked this pull request as draft November 3, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant