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

Issue 467133002: ServiceWorker: Prevent premature garbage collection on ServiceWorkerRegistration (Closed)

Created:
6 years, 4 months ago by nhiroki
Modified:
6 years, 4 months ago
Reviewers:
falken, tkent, horo
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, jamesr, tzik, serviceworker-reviews, abarth-chromium, dglazkov+blink, kinuko+serviceworker, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

ServiceWorker: Prevent premature garbage collection on ServiceWorkerRegistration Before this patch, the ServiceWorkerRegistration object could be garbage collected prematurely and it caused renderer crash. This change keeps the registration object alive until stop() is called, and notifies WebServiceWorkerRegistration of the stop event. BUG=396400 TEST=https://codereview.chromium.org/466723002/ Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180265

Patch Set 1 #

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M Source/modules/serviceworkers/ServiceWorkerRegistration.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerRegistration.cpp View 1 2 chunks +14 lines, -0 lines 0 comments Download
M public/platform/WebServiceWorkerRegistration.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
nhiroki
Ptal, thanks!
6 years, 4 months ago (2014-08-13 09:06:23 UTC) #1
falken
lgtm as I think we need this to prevent the ServiceWorkerRegistration from being gc'd preventing ...
6 years, 4 months ago (2014-08-13 09:51:44 UTC) #2
nhiroki
On 2014/08/13 09:51:44, falken wrote: > lgtm as I think we need this to prevent ...
6 years, 4 months ago (2014-08-13 10:45:01 UTC) #3
falken
On 2014/08/13 10:45:01, nhiroki wrote: > On 2014/08/13 09:51:44, falken wrote: > > lgtm as ...
6 years, 4 months ago (2014-08-13 12:31:14 UTC) #4
nhiroki
On 2014/08/13 12:31:14, falken wrote: > On 2014/08/13 10:45:01, nhiroki wrote: > > On 2014/08/13 ...
6 years, 4 months ago (2014-08-14 08:42:05 UTC) #5
nhiroki
Hi kent-san, can you take a look at public/platform/WebServiceWorkerRegistration.h? Thanks.
6 years, 4 months ago (2014-08-14 08:43:43 UTC) #6
tkent
lgtm
6 years, 4 months ago (2014-08-14 08:47:41 UTC) #7
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 4 months ago (2014-08-14 09:02:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/467133002/40001
6 years, 4 months ago (2014-08-14 09:03:14 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 4 months ago (2014-08-14 13:43:25 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 15:05:54 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (40001) as 180265

Powered by Google App Engine
This is Rietveld 408576698