-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
service worker: Drop postMessage() to redundant workers silently.
Update the WPT and fix behavior. Per spec change at w3c/ServiceWorker#1146. Bug: 972461 Change-Id: Id4bac3fbe1996382952e54d46cb405de9eb951b3
- Loading branch information
1 parent
e360ebb
commit 3094f38
Showing
2 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
service-workers/service-worker/resources/postmessage-echo-worker.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
self.addEventListener('message', event => { | ||
event.source.postMessage(event.data); | ||
}); |