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

Issue 2404233002: Aborts all pending fetch event callbacks in ServiceWorkerContextClient::willDestroyWorkerContext. (Closed)

Created:
4 years, 2 months ago by horo
Modified:
4 years, 2 months ago
Reviewers:
shimazu
CC:
chromium-reviews, michaeln, mlamouri+watch-content_chromium.org, kenjibaheux+watch_chromium.org, tzik, jsbell+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, falken, kinuko+serviceworker, horo+watch_chromium.org, blink-reviews, darin-cc_chromium.org, kinuko+watch, shimazu+serviceworker_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Aborts all pending fetch event callbacks in ServiceWorkerContextClient::willDestroyWorkerContext. Same as https://crrev.com/2405163002/, we have to execute the fetch event callbacks before the destruction. BUG=649558 Committed: https://crrev.com/e9dbf555b882b7247e5029aee2ae070c026bd2f1 Cr-Commit-Position: refs/heads/master@{#424672}

Patch Set 1 #

Patch Set 2 : clean up test #

Patch Set 3 : clean up test #

Patch Set 4 : rebase #

Total comments: 7

Patch Set 5 : incorporated shimazu's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -0 lines) Patch
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/stop-worker-with-pending-fetch.html View 1 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
horo
shimazu@ Could you please review this?
4 years, 2 months ago (2016-10-12 02:21:35 UTC) #7
shimazu
https://codereview.chromium.org/2404233002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js (right): https://codereview.chromium.org/2404233002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js#newcode1 third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js:1: self.addEventListener('fetch', function(evt) { nit: How about 'evt => {...}' ...
4 years, 2 months ago (2016-10-12 02:30:12 UTC) #10
horo
https://codereview.chromium.org/2404233002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js (right): https://codereview.chromium.org/2404233002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js#newcode1 third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js:1: self.addEventListener('fetch', function(evt) { On 2016/10/12 02:30:12, shimazu wrote: > ...
4 years, 2 months ago (2016-10-12 03:13:04 UTC) #13
shimazu
lgtm! https://codereview.chromium.org/2404233002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js (right): https://codereview.chromium.org/2404233002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js#newcode2 third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/stop-worker-with-pending-fetch.js:2: evt.respondWith(new Response('')); On 2016/10/12 03:13:04, horo wrote: > ...
4 years, 2 months ago (2016-10-12 03:49:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2404233002/80001
4 years, 2 months ago (2016-10-12 03:57:42 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-12 05:00:52 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 05:02:19 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e9dbf555b882b7247e5029aee2ae070c026bd2f1
Cr-Commit-Position: refs/heads/master@{#424672}

Powered by Google App Engine
This is Rietveld 408576698