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

Issue 304023002: Don't leak a WebServiceWorker when 'current' races with context destruction. (Closed)

Created:
6 years, 6 months ago by dominicc (has gone to gerrit)
Modified:
6 years, 6 months ago
Reviewers:
falken
CC:
blink-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, horo+watch_chromium.org, alecflett+watch_chromium.org
Visibility:
Public.

Description

Don't leak a WebServiceWorker when 'current' races with context destruction. WebServiceWorkerProviderClient::setCurrentServiceWorker passes the ownership of a WebServiceWorker to the container. If the execution context is gone, delete the WebServiceWorker instead of dropping it on the floor. BUG=363967 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175023

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
dominicc (has gone to gerrit)
PTAL Noticed this in the context of whenReady. Tried to write a context destruction test ...
6 years, 6 months ago (2014-05-29 00:41:25 UTC) #1
falken
lgtm
6 years, 6 months ago (2014-05-29 01:54:44 UTC) #2
dominicc (has gone to gerrit)
The CQ bit was checked by dominicc@chromium.org
6 years, 6 months ago (2014-05-29 02:42:01 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/304023002/1
6 years, 6 months ago (2014-05-29 02:42:19 UTC) #4
commit-bot: I haz the power
6 years, 6 months ago (2014-05-29 02:55:41 UTC) #5
Message was sent while issue was closed.
Change committed as 175023

Powered by Google App Engine
This is Rietveld 408576698