-
Notifications
You must be signed in to change notification settings - Fork 318
Resolve Job Promise can resolve jobs with an incorrect value #829
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
Comments
Where does ServiceWorkerRegistration have an associated client? I don't see that in the spec. |
|
Oh, I see. I'm probably missing something, but it seems thats not really needed. The .installing/waiting/active getters could get the service worker client from the current context's service worker client. |
I'm not even sure what |
F2F: I'll inspect and fix it. |
This changes Resolve Job Promise algorithm to use a right value for equivalent job promises by specifying the value should be the one for its relevant Realm. Fixes #829.
This changes Resolve Job Promise/Reject Job Promise algorithms and their call sites to use correct fulfillment values/rejection reasons for equivalent job promises by specifying the associated realms. Fixes #829.
This changes Resolve Job Promise/Reject Job Promise algorithms and their call sites to use correct fulfillment values/rejection reasons for equivalent job promises by specifying the associated realms. Fixes #829.
Currently the Resolve Job Promise algorithm resolves all equivalent jobs with the same value, I don't think this is correct. For example multiple equivalent register jobs should possibly be resolved with distinct
ServiceWorkerRegistration
instances (if they were called from different javascript contexts). But maybe more importantly, two equivalent jobs can have differentclient
properties; this means that for example with a register job each equivalent promise needs aServiceWorkerRegistration
instance with a different associated service worker client.The text was updated successfully, but these errors were encountered: