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

Issue 900793002: ServiceWorker: Support SWRegistration.unregister() in SWGlobalScope [2/2] (Closed)

Created:
5 years, 10 months ago by nhiroki
Modified:
5 years, 10 months ago
Reviewers:
falken, kinuko, Mike West
CC:
blink-reviews, dglazkov+blink, falken, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

ServiceWorker: Support SWRegistration.unregister() in SWGlobalScope [2/2] SWRegistration.unregister() depends on WebSWProvider, but it's not available in SWGlobalScope because the provider isn't supplied on the worker startup sequence. This series of CLs make it available and support unregister() in the service worker context. This CL defines createServiceWorkerProvider() interface and actually provides ServiceWorkerContainerClient object. [1] Chromium: https://codereview.chromium.org/893363003/ [2] Blink: THIS PATCH BUG=452910 TEST=run-webkit-tests http/tests/serviceworker/ServiceWorkerGlobalScope Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189616

Patch Set 1 #

Patch Set 2 : WIP: add test #

Total comments: 2

Patch Set 3 : ready to review #

Total comments: 2

Patch Set 4 : return nullptr instead of 0 #

Total comments: 12

Patch Set 5 : rebase #

Patch Set 6 : update layout tests and header comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -5 lines) Patch
A LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-worker.js View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/unregister.html View 1 2 3 4 5 1 chunk +127 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M public/web/WebServiceWorkerContextClient.h View 1 2 3 4 5 3 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
kinuko
https://codereview.chromium.org/900793002/diff/20001/public/web/WebServiceWorkerContextClient.h File public/web/WebServiceWorkerContextClient.h (right): https://codereview.chromium.org/900793002/diff/20001/public/web/WebServiceWorkerContextClient.h#newcode58 public/web/WebServiceWorkerContextClient.h:58: // are called on the worker thread. Please update ...
5 years, 10 months ago (2015-02-04 15:39:30 UTC) #2
nhiroki
Can you take another look? Thanks! https://codereview.chromium.org/900793002/diff/20001/public/web/WebServiceWorkerContextClient.h File public/web/WebServiceWorkerContextClient.h (right): https://codereview.chromium.org/900793002/diff/20001/public/web/WebServiceWorkerContextClient.h#newcode58 public/web/WebServiceWorkerContextClient.h:58: // are called ...
5 years, 10 months ago (2015-02-05 08:36:38 UTC) #4
kinuko
lgtm I'm not terribly good at reviewing registration tests, you may also want falken@ or ...
5 years, 10 months ago (2015-02-05 09:09:29 UTC) #5
nhiroki
Updated. Thank you! https://codereview.chromium.org/900793002/diff/60001/public/web/WebServiceWorkerContextClient.h File public/web/WebServiceWorkerContextClient.h (right): https://codereview.chromium.org/900793002/diff/60001/public/web/WebServiceWorkerContextClient.h#newcode154 public/web/WebServiceWorkerContextClient.h:154: virtual WebServiceWorkerProvider* createServiceWorkerProvider() { return 0; ...
5 years, 10 months ago (2015-02-05 09:12:42 UTC) #7
nhiroki
Hi, can you review this? +falken for LayoutTests/ +mkwst for Source/web and public/web Thanks.
5 years, 10 months ago (2015-02-05 09:15:06 UTC) #9
falken
lgtm with comments https://codereview.chromium.org/900793002/diff/80001/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html File LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html (right): https://codereview.chromium.org/900793002/diff/80001/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html#newcode3 LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html:3: function fetch_url(url) { Hopefully we can ...
5 years, 10 months ago (2015-02-05 12:07:57 UTC) #10
Mike West
*/web LGTM.
5 years, 10 months ago (2015-02-05 12:44:37 UTC) #11
nhiroki
Thank you! https://codereview.chromium.org/900793002/diff/80001/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html File LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html (right): https://codereview.chromium.org/900793002/diff/80001/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html#newcode3 LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html:3: function fetch_url(url) { On 2015/02/05 12:07:57, falken ...
5 years, 10 months ago (2015-02-06 03:49:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/900793002/160001
5 years, 10 months ago (2015-02-06 04:58:42 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 06:24:08 UTC) #18
Message was sent while issue was closed.
Committed patchset #6 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189616

Powered by Google App Engine
This is Rietveld 408576698