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

Issue 2077843002: Service worker: Remove unneeded early stop in FinishRequest (Closed)

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

Description

Service worker: Remove unneeded early stop in FinishRequest This is a vestige of older code added in https://crrev.com/0c171c6df9b7fbb Previously Doom() called StopIfIdle() rather than Stop(). Now (as of https://crrev.com/b34f1e5b97667e) Doom() terminates immediately, with the one exception when DevTools is attached. In that case, we stop immediately once DevTools is detached. There are two callsites that set status to REDUNDANT directly. This patch changes one to call Stop() first, as per spec. It's not necessary to call Doom() because the new version has already been stored which puts the old version's resources in the purged list. This is minor cleanup in anticipation of some changes for https://crbug.com/616331 BUG=616331, 448670 TEST=third_party/WebKit/Tools/Scripts/run-webkit-tests --repeat-each=50 http/tests/serviceworker/register-same-scope-different-script-url.html Committed: https://crrev.com/0276ebb1eae96b10ade52b189ecbaa01ffc8009f Cr-Commit-Position: refs/heads/master@{#400636}

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix a callsiet #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -9 lines) Patch
M content/browser/service_worker/service_worker_register_job.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
falken
r? cq?
4 years, 6 months ago (2016-06-17 08:18:32 UTC) #4
nhiroki
lgtm https://codereview.chromium.org/2077843002/diff/1/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/2077843002/diff/1/content/browser/service_worker/service_worker_version.cc#newcode602 content/browser/service_worker/service_worker_version.cc:602: StopWorkerIfIdle(); Should we remove this, too?
4 years, 6 months ago (2016-06-17 21:28:22 UTC) #5
falken
On 2016/06/17 21:28:22, nhiroki (slow until Jun 20) wrote: > lgtm > > https://codereview.chromium.org/2077843002/diff/1/content/browser/service_worker/service_worker_version.cc > ...
4 years, 6 months ago (2016-06-20 04:11:24 UTC) #6
falken
PTAL
4 years, 6 months ago (2016-06-20 04:40:33 UTC) #8
nhiroki
lgtm
4 years, 6 months ago (2016-06-20 08:21:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2077843002/20001
4 years, 6 months ago (2016-06-20 08:22:13 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-20 08:26:07 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 08:28:05 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0276ebb1eae96b10ade52b189ecbaa01ffc8009f
Cr-Commit-Position: refs/heads/master@{#400636}

Powered by Google App Engine
This is Rietveld 408576698