ServiceWorker: Use scheduler's default task queue for posting tasks on main thread
This fixes a task ordering bug between WebMessagePortChannelImpl and ServiceWorkerScriptContext. The former posts tasks via the Blink scheduler's default task queue, and the latter was using the MessageLoop directly. This patch makes tasks from service worker to the main thread go through the scheduler. BUG=460833 TEST=http/tests/serviceworker/postmessage-msgport-to-client.html Review URL: https://codereview.chromium.org/958523002 Cr-Commit-Position: refs/heads/master@{#318022}
Showing
Please register or sign in to comment