Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Issue 2596153002: service worker: Attempt to send WorkerStopped before ProviderDestroyed. (Closed)

Created:
4 years ago by falken
Modified:
3 years, 12 months ago
Reviewers:
shimazu
CC:
chromium-reviews, michaeln, mlamouri+watch-content_chromium.org, tzik, jsbell+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, kinuko+serviceworker, horo+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, shimazu+serviceworker_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

service worker: Attempt to send WorkerStopped before ProviderDestroyed. Previously in IPC when a worker stops, the renderer sends the browser a WorkerStopped message followed by a ProviderDestroyed message. This ordering got reversed in https://crrev.com/6ea839368fd4dbf, causing an unexpected case where a ServiceWorkerProviderHost is destroyed, releasing a ServiceWorkerVersion before OnStopped can be invoked on it. This patch returns to the previous ordering. However even with this patch, for Mojo the ordering is still not guaranteed, since the pipes are different. Since the IPC land is no longer the default, the real fix is to figure out how to do this in Mojo. This patch is just a mitigation, so no tests are added yet. BUG=629701, 676526 Committed: https://crrev.com/af96c9a9e8d491929f32f2e693fd61fd1b93557d Cr-Commit-Position: refs/heads/master@{#440356}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M content/renderer/service_worker/embedded_worker_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/service_worker/embedded_worker_instance_client_impl.cc View 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
falken
ptal
4 years ago (2016-12-22 06:12:55 UTC) #2
shimazu
lgtm, thanks!
4 years ago (2016-12-22 07:09:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2596153002/1
4 years ago (2016-12-22 07:14:15 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-22 07:48:38 UTC) #11
commit-bot: I haz the power
4 years ago (2016-12-22 07:50:37 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/af96c9a9e8d491929f32f2e693fd61fd1b93557d
Cr-Commit-Position: refs/heads/master@{#440356}

Powered by Google App Engine
This is Rietveld 408576698