-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
HTML: opener and discarded auxiliary browsing context #15518
Conversation
assert_true(openerDescImmaterial.writable); | ||
assert_true(openerDescImmaterial.enumerable); | ||
assert_true(openerDescImmaterial.configurable); | ||
testOpener(frameW, window, () => frame.remove()); | ||
|
||
t.done(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can use t.step_func_done for this one too, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, due to different load event behavior (there's a comment to that effect).
This probably should not be merged until whatwg/html#4379 (comment) is resolved somehow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine, modulo sorting out the close()
behavior. I commented over in whatwg/html#4379 about what's going on there in Firefox...
assert_equals(otherW.opener, null, "opener after removal"); | ||
assert_equals(openerGet(), null, "opener after removal via directly invoking the getter"); | ||
|
||
otherW.opener = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a little weird to do this after the opener is already asserted to be null, but I guess we were already testing that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly to ensure the setter doesn't do anything weird. I could remove this if desired...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New version LGTM again. It assumes that the spec will queue a task for discarding, which per IRC conversations sounds like it's a good assumption.
For whatwg/html#4379.