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

Guard "close a top-level traversable" #9396

Merged
merged 1 commit into from
Jun 9, 2023
Merged

Guard "close a top-level traversable" #9396

merged 1 commit into from
Jun 9, 2023

Conversation

domenic
Copy link
Member

@domenic domenic commented Jun 7, 2023

This prevents a double-close if the user closes a top-level traversable while the task queued by window.close() has not yet run.

/cc @steimelchrome. I think this should let you remove your spec's guards; the other condition in the closed getter, of the browsing context being null, seems like it should be impossible to hit.


/document-sequences.html ( diff )

This prevents a double-close if the user closes a top-level traversable while the task queued by window.close() has not yet run.
@domenic domenic merged commit af3ff83 into main Jun 9, 2023
2 checks passed
@domenic domenic deleted the guard-close branch June 9, 2023 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants