Skip to content

Move setting one permitted sandboxed navigator outside noopener branch#12298

Open
MittelmanDaniel wants to merge 1 commit intowhatwg:mainfrom
MittelmanDaniel:fix-sandboxed-navigator-noopener
Open

Move setting one permitted sandboxed navigator outside noopener branch#12298
MittelmanDaniel wants to merge 1 commit intowhatwg:mainfrom
MittelmanDaniel:fix-sandboxed-navigator-noopener

Conversation

@MittelmanDaniel
Copy link
Copy Markdown

@MittelmanDaniel MittelmanDaniel commented Mar 22, 2026

Fixes #12297.

Summary

Since #4330 made target="_blank" imply noopener=true, the "one permitted sandboxed navigator" is never set for sandboxed iframe popups because it lives inside the noopener=false ("Otherwise") branch of the rules for choosing a navigable.

This moves the step outside both branches so it runs regardless of noopener, matching Firefox's implementation and the existing placement of the "sandbox propagates to auxiliary browsing contexts" step which is already outside both branches.

Change

  • Flattened the "Otherwise" block to a single step (just creating the traversable)
  • Moved "If sandboxingFlagSet's sandboxed navigation browsing context flag is set, then set chosen's one permitted sandboxed navigator..." to its own step after both branches
  • No other changes

Context


/document-sequences.html ( diff )

Since whatwg#4330 made target=_blank imply noopener=true, the one permitted
sandboxed navigator is never set for sandboxed iframe popups because
it was inside the noopener=false (Otherwise) branch.

This moves it outside both branches so it runs regardless of noopener,
matching Firefox's implementation and the existing placement of the
sandbox-propagates-to-auxiliary step.

Fixes whatwg#12297
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.

Setting one permitted sandboxed navigator should not be conditional on noopener being false

1 participant