You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, we would only check at the last minute. This would be buggy in the case where we create a new navigable, and then throw an exception. Instead we should be sure to throw before creating a new navigable.
In addition to fixing this somewhat-obviously-wrong bug, this also causes validation to happen in cases where a named window is targeted, but no window with that name exists. Previously, the window open steps would do nothing in such cases; now, they throw an exception when given an invalid URL.
Closes#10681.
Previously, we would only check at the last minute. This would be buggy in the case where we create a new navigable, and then throw an exception. Instead we should be sure to throw before creating a new navigable.
In addition to fixing this somewhat-obviously-wrong bug, this also causes validation to happen before popup blocking or other window-choosing steps. Previously, if trying to open a window to an unparseable URL with the popup blocker active, the window open steps would return null; now, they throw an exception.
Closes#10681.
What is the issue with the HTML Standard?
The window open steps check the validity of the URL after running the rules to choose a navigable.
This will result in a new traversable being created (but then not navigated to) on an invalid URL, which if I understand right, is not correct.
I believe the step(s) of:
Should run earlier in the window open steps before invoking the rules for choosing a navigable - or at least, before creating a new traversable.
The text was updated successfully, but these errors were encountered: