-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fix various active document tests #22031
Conversation
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.
Nasty... but makes sense :)
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.
Rubber-stamping this PR since you definitely know more about this than I do :-)
Do note that I mostly copied this test from payment-request/rejects_if_not_active-manual.https.html
, so it probably needs to be adjusted as well.
cc @bzbarsky as the author of |
I'm not sure I'm following the comment, actually. The real issue here, I would expect, is the In terms of whether we can remove this papercut... We could replace this bit in
with:
with a comment explaining that this is an attempt to prevent returning promises from non-active contexts, because awaiting them does not work. That said, I haven't looked at the subclassing stuff in If we can't remove the papercut, we should at least document the behavior clearly, and this comment should clearly say that it's the awaiting in the test, not in the harness, that is a problem... |
@bzbarsky Hmm, I guess I didn't look as carefully as I should have. In either case, any comment with whatwg/html#5319 would be appreciated. Regarding the suggestion to use |
@rakuco Thanks for the pointer. I've adjusted it as well. |
Yeah, still working on that. Need to page a lot of context in to comment intelligently there. ;) |
await p
different fromp.then
whatwg/html#5319.