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

Issue 325173002: ServiceWorker: Confirm the liveness of the associated context before handling message (Closed)

Created:
6 years, 6 months ago by nhiroki
Modified:
6 years, 6 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, darin-cc_chromium.org, horo+watch_chromium.org, alecflett+watch_chromium.org
Visibility:
Public.

Description

ServiceWorker: Confirm the liveness of the associated context before handling message SWProviderHost is associated with SWContextCore which can be purged on corruption recovery process while the host is still referring to it, so the host should check the liveness of the context before handling the message from renderer. BUG=371675 TEST=content_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277738

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : revamp (drop SWProviderHostRegistry) #

Total comments: 2

Patch Set 4 : IsAlive() -> IsContextAlive() #

Patch Set 5 : fix more #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -2 lines) Patch
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 chunks +24 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
nhiroki
Hi, can you review this? Thanks! DesignDoc: https://docs.google.com/document/d/1eXdgnAOZC4dDDybmRpXT0t0lOYGhFf7xajOSanEb91Y/edit?usp=sharing
6 years, 6 months ago (2014-06-11 10:23:31 UTC) #1
michaeln
The CL looks pretty reasonable. I think i see an alternative to this that i'd ...
6 years, 6 months ago (2014-06-11 22:02:17 UTC) #2
nhiroki
Thank you. Reply only. On 2014/06/11 22:02:17, michaeln wrote: > The CL looks pretty reasonable. ...
6 years, 6 months ago (2014-06-12 00:19:46 UTC) #3
nhiroki
Updated. Can you take another look? On 2014/06/12 00:19:46, nhiroki wrote: > Thank you. Reply ...
6 years, 6 months ago (2014-06-16 09:50:33 UTC) #4
michaeln
lgtm https://codereview.chromium.org/325173002/diff/40001/content/browser/service_worker/service_worker_provider_host.h File content/browser/service_worker/service_worker_provider_host.h (right): https://codereview.chromium.org/325173002/diff/40001/content/browser/service_worker/service_worker_provider_host.h#newcode99 content/browser/service_worker/service_worker_provider_host.h:99: bool IsAlive(); nit: IsContextAlive() might be more clear
6 years, 6 months ago (2014-06-16 18:41:35 UTC) #5
nhiroki
https://codereview.chromium.org/325173002/diff/40001/content/browser/service_worker/service_worker_provider_host.h File content/browser/service_worker/service_worker_provider_host.h (right): https://codereview.chromium.org/325173002/diff/40001/content/browser/service_worker/service_worker_provider_host.h#newcode99 content/browser/service_worker/service_worker_provider_host.h:99: bool IsAlive(); On 2014/06/16 18:41:35, michaeln wrote: > nit: ...
6 years, 6 months ago (2014-06-16 21:43:47 UTC) #6
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 6 months ago (2014-06-16 21:43:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/325173002/40002
6 years, 6 months ago (2014-06-16 21:45:31 UTC) #8
nhiroki
https://codereview.chromium.org/325173002/diff/20017/content/browser/service_worker/service_worker_request_handler.cc File content/browser/service_worker/service_worker_request_handler.cc (right): https://codereview.chromium.org/325173002/diff/20017/content/browser/service_worker/service_worker_request_handler.cc#newcode75 content/browser/service_worker/service_worker_request_handler.cc:75: if (!provider_host) On 2014/06/11 22:02:17, michaeln wrote: > also ...
6 years, 6 months ago (2014-06-17 08:56:15 UTC) #9
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 6 months ago (2014-06-17 08:56:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/325173002/80001
6 years, 6 months ago (2014-06-17 08:58:51 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-17 12:15:38 UTC) #12
Message was sent while issue was closed.
Change committed as 277738

Powered by Google App Engine
This is Rietveld 408576698