Skip to content
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

Clients.openWindow() as a navigation method? #227

Open
ericlaw1979 opened this issue Apr 20, 2022 · 1 comment
Open

Clients.openWindow() as a navigation method? #227

ericlaw1979 opened this issue Apr 20, 2022 · 1 comment

Comments

@ericlaw1979
Copy link

Does this method need to go in the list of navigation mechanisms? Or no, because it only works in a serviceworker scope?

@domenic
Copy link
Collaborator

domenic commented Apr 20, 2022

Great question. I think it falls under this clause which is kind of hidden at the bottom:

Also, HTML calls the navigate algorithm for the initial loads of new browsing contexts as they transition from the initial about:blank; we avoid firing navigate for those since the initial about:blank is such a weird case in general.

Other APIs in this category include include window.open() with a name argument that doesn't point to an existing window (or no name argument), and iframe/embed/object element creation. (Plus other future elements proposed, like portal and fencedframe.)

Maybe we should list these explicitly though, to make it clear we audited them and thought through the non-applicability of the navigation API for their case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants