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
Immediately sets a flag that immediately affects window.closed and named targeting. (Chrome seems similar for window.closed; Safari not (branches on "discard"); did not test named targeting.)
Queues a task to maybe discard. (There's no task involved currently, but there is in all browsers.)
This does raise the question of what kind of things can happen between window.close() and discarding. E.g., can you navigate, can you go back in history? More tests are needed.
Related PR that needs changes because of this: #4402.
I talked with @bzbarsky about
window.close()
a bit because of web-platform-tests/wpt#15518. It seemswindow.close()
does two things:window.closed
and named targeting. (Chrome seems similar forwindow.closed
; Safari not (branches on "discard"); did not test named targeting.)This does raise the question of what kind of things can happen between
window.close()
and discarding. E.g., can you navigate, can you go back in history? More tests are needed.Related PR that needs changes because of this: #4402.
Somewhat related: #1866, #4363.
The text was updated successfully, but these errors were encountered: