Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
service worker: Queue Client.postMessage() until onmessage is set.
This is a follow-up to https://chromium-review.googlesource.com/c/chromium/src/+/1441657. This enables the queue when onmessage is assigned to. It adheres to the specification at https://w3c.github.io/ServiceWorker/#dom-serviceworkercontainer-onmessage: "The first time the context object’s onmessage IDL attribute is set, its client message queue must be enabled." This makes the test cases about "setting onmessage" in the WPT postmessage-to-client-message-queue.https.html pass, but the test file will still time out until startMessages() is implemented. Bug: 915685 Change-Id: I4c4930b48df68ee351676e5c3edfb28969fe3610 Reviewed-on: https://chromium-review.googlesource.com/c/1441734 Commit-Queue: Matt Falkenhagen <[email protected]> Reviewed-by: Hiroki Nakagawa <[email protected]> Cr-Commit-Position: refs/heads/master@{#626929}
- Loading branch information