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

Issue 2469203002: ServiceWorker: Let dtor of SWRegistration work in the shutdown sequence (Closed)

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

Description

ServiceWorker: Let dtor of SWRegistration work in the shutdown sequence Currently the destructor of SWRegistration just returns without any operations during shutdown because DCHECK_CURRENTLY_ON(BrowserThread::IO) used not to work when shutting down. This patch removes the early return because DCHECK_CURRENTLY_ON is now working thanks to https://crrev.com/2180253003. Once the dtor works, a pointer to SWRegistration owned by SWVersion::listeners_ will be removed appropreately. Here is steps to repro: 1) Make a tab controlled by a service worker 2) Edit that service worker so the next update would install a new version. 3) Open another tab controlled by the service worker. 4) Now you should have an active worker and a waiting worker 5) Ctrl+Shift+Q to quit the browser. ServiceWorkerRegistration destructor will be called during shutdown. BUG=658702 Committed: https://crrev.com/667f50ff47ad7217f21b80369dde3698e4c758c9 Cr-Commit-Position: refs/heads/master@{#429234}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -5 lines) Patch
M content/browser/service_worker/service_worker_registration.cc View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
shimazu
ptal
4 years, 1 month ago (2016-11-02 05:17:04 UTC) #2
falken
looks good, but Please add data to the CL description about why this is now ...
4 years, 1 month ago (2016-11-02 05:18:28 UTC) #4
shimazu
On 2016/11/02 05:18:28, falken wrote: > looks good, but Please add data to the CL ...
4 years, 1 month ago (2016-11-02 07:24:18 UTC) #9
falken
lgtm, thanks
4 years, 1 month ago (2016-11-02 07:40:03 UTC) #10
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/2469203002/1
4 years, 1 month ago (2016-11-02 07:48:53 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-02 07:54:56 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 07:59:31 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/667f50ff47ad7217f21b80369dde3698e4c758c9
Cr-Commit-Position: refs/heads/master@{#429234}

Powered by Google App Engine
This is Rietveld 408576698