-
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
Service worker: Fail if fetch event has targetClientId #29213
Conversation
Discussion w3c/ServiceWorker#1333 (comment) |
Rather than introducing a failure in an existing test, how about a |
Heh yeah, that is simpler |
@@ -17,6 +17,8 @@ | |||
const registration = | |||
await service_worker_unregister_and_register(t, worker, scope); | |||
await wait_for_state(t, registration.installing, 'activated'); | |||
|
|||
// This will happen after all other tests |
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.
Do you want to keep this comment, or revert that too?
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.
I'd like to keep that if that's ok. It confused me when reading those tests.
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.
That's fine, just making sure it was intentional.
On
FetchEvent
,targetClientId
was renamed toreplacesClientId
. Unfortunately Safari shippedtargetClientId
before we made the change, and didn't realise due to some miscommunication.This test fails in browsers that have
targetClientId
.Unfortunately there aren't any proper tests for
replacesClientId
(ortargetClientId
), but that's for another day.