-
Notifications
You must be signed in to change notification settings - Fork 313
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
Should we specify behavior for using objects from detached contexts? #1221
Comments
I doubt we are aligned here yet, but it would be good to do so. I would say land the test with a comment that clarifies this is currently underspecified and there is room for improvement. We can then iterate on the test. |
Upstreamed as detached-context.https.html https://chromium-review.googlesource.com/c/chromium/src/+/759136 |
Thanks for landing the test. It seems it touches on a somewhat contentious bit of the promise spec, though. Apparently chrome calls resolve()/reject() callbacks when the promise's owning global is detached, but firefox does not. This make the check for promise rejection timeout in firefox: @mattto Would you be ok if we loosened this part of the check somehow? |
Sorry I missed this, yes I'm ok loosening the test especially given the
comment at the top about unspecified behavior. I think the main reason for
the test was to test a crash fix.
2018/02/07 午前3:17 "Ben Kelly" <notifications@github.com>:
… Thanks for landing the test. It seems it touches on a somewhat contentious
bit of the promise spec, though. Apparently chrome calls resolve()/reject()
callbacks when the promise's owning global is detached, but firefox does
not. This make the check for promise rejection timeout in firefox:
https://github.com/w3c/web-platform-tests/blob/master/
service-workers/service-worker/detached-context.https.html#L44
@mattto <https://github.com/mattto> Would you be ok if we loosened this
part of the check somehow?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1221 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABsxUj4wJBShNQ0mqXSIqCV8c3xfkhQrks5tSJdEgaJpZM4QXD49>
.
|
I was thinking we could make the test verify that |
I'm going to fix this in gecko and then uplift since ./wpt serve is not working for me today. |
The update to detached-context.https.html to avoid the explicit check for promise rejection has landed upstream in: |
Chromium has some tests which I'm looking to upstream to WPT that do something like:
Or
I was just going to upstream them, but discovered we originally didn't plan to make these WPT tests because the spec doesn't specify behavior for these detached window cases.
Should the spec specify behavior for these? Any concerns if we just upstream them as WPT tests now even if there might not be spec text?
The text was updated successfully, but these errors were encountered: