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

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

Created:
5 years, 10 months ago by nhiroki
Modified:
5 years, 10 months ago
Reviewers:
kinuko, falken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, mlamouri+watch-content_chromium.org, tzik, serviceworker-reviews, jam, darin-cc_chromium.org, horo+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, kinuko+serviceworker, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Support SWRegistration.unregister() in SWGlobalScope [1/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 implements createServiceWorkerProvider() to supply a provider and sets the document URL of its provider host to the worker script URL in order to allow unregister() call on SWGlobalScope. [1] Chromium: THIS PATCH [2] Blink: https://codereview.chromium.org/900793002/ BUG=452910 TEST=compile Committed: https://crrev.com/3d7ea50b10067d64dfc3d075b2c5ba0e47c9e982 Cr-Commit-Position: refs/heads/master@{#314979}

Patch Set 1 : #

Total comments: 5

Patch Set 2 : update header comment #

Patch Set 3 : update header comment2 #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : update header comment3 #

Patch Set 6 : update header comment4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -3 lines) Patch
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.h View 1 2 3 4 5 5 chunks +10 lines, -3 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
nhiroki
Hi kinuko@ and falken@, can you review this? Thanks! https://codereview.chromium.org/893363003/diff/50001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/893363003/diff/50001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode566 content/browser/service_worker/service_worker_dispatcher_host.cc:566: ...
5 years, 10 months ago (2015-02-04 05:18:27 UTC) #5
kinuko
Hmm, I have a bit mixed impression on this patch. Creating provider client object only ...
5 years, 10 months ago (2015-02-04 07:12:52 UTC) #6
nhiroki
Just in case, these are my previous CLs: (1) Blink: https://codereview.chromium.org/897573002/ (2) Chromium: https://codereview.chromium.org/896533004/ (3) ...
5 years, 10 months ago (2015-02-04 11:13:18 UTC) #7
kinuko
On 2015/02/04 11:13:18, nhiroki (slow) wrote: > Just in case, these are my previous CLs: ...
5 years, 10 months ago (2015-02-04 15:31:57 UTC) #8
kinuko
I think this lgtm https://codereview.chromium.org/893363003/diff/50001/content/renderer/service_worker/embedded_worker_context_client.h File content/renderer/service_worker/embedded_worker_context_client.h (right): https://codereview.chromium.org/893363003/diff/50001/content/renderer/service_worker/embedded_worker_context_client.h#newcode40 content/renderer/service_worker/embedded_worker_context_client.h:40: // are called on the ...
5 years, 10 months ago (2015-02-04 15:39:14 UTC) #9
nhiroki
Thank you! Updated. https://codereview.chromium.org/893363003/diff/50001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/893363003/diff/50001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode566 content/browser/service_worker/service_worker_dispatcher_host.cc:566: provider_host->SetDocumentUrl(version->script_url()); On 2015/02/04 07:12:52, kinuko wrote: ...
5 years, 10 months ago (2015-02-05 05:28:40 UTC) #11
falken
lgtm2 https://codereview.chromium.org/893363003/diff/90001/content/renderer/service_worker/embedded_worker_context_client.h File content/renderer/service_worker/embedded_worker_context_client.h (right): https://codereview.chromium.org/893363003/diff/90001/content/renderer/service_worker/embedded_worker_context_client.h#newcode40 content/renderer/service_worker/embedded_worker_context_client.h:40: // on the worker thread. Seems better to ...
5 years, 10 months ago (2015-02-05 12:07:18 UTC) #13
nhiroki
Thank you! https://codereview.chromium.org/893363003/diff/90001/content/renderer/service_worker/embedded_worker_context_client.h File content/renderer/service_worker/embedded_worker_context_client.h (right): https://codereview.chromium.org/893363003/diff/90001/content/renderer/service_worker/embedded_worker_context_client.h#newcode40 content/renderer/service_worker/embedded_worker_context_client.h:40: // on the worker thread. On 2015/02/05 ...
5 years, 10 months ago (2015-02-06 01:57:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/893363003/150001
5 years, 10 months ago (2015-02-06 01:59:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/893363003/170001
5 years, 10 months ago (2015-02-06 03:45:24 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:170001)
5 years, 10 months ago (2015-02-06 04:56:28 UTC) #20
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 04:57:26 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3d7ea50b10067d64dfc3d075b2c5ba0e47c9e982
Cr-Commit-Position: refs/heads/master@{#314979}

Powered by Google App Engine
This is Rietveld 408576698