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

Issue 1675613002: service worker: use 200 OK for update requests even in the no update case (Closed)

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

Description

service worker: use 200 OK for update requests even in the no update case The main motivation is to stop network failure error spew in DevTools console. This patch reinstates the "pause on download" functionality we once had. BUG=541797 Committed: https://crrev.com/42bc9253c79fa01fc6a6af5b3908dcc063a12023 Cr-Commit-Position: refs/heads/master@{#376032}

Patch Set 1 #

Total comments: 16

Patch Set 2 : review comments #

Patch Set 3 : rebase #

Patch Set 4 : dcheck #

Patch Set 5 : rebase #

Patch Set 6 : more testing #

Total comments: 1

Patch Set 7 : rebase #

Patch Set 8 : asan and fix win compile? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -72 lines) Patch
M content/browser/service_worker/embedded_worker_instance.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -3 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance.cc View 1 2 3 4 4 chunks +15 lines, -1 line 0 comments Download
M content/browser/service_worker/embedded_worker_instance_unittest.cc View 1 2 3 4 5 6 2 chunks +33 lines, -3 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 2 3 4 5 3 chunks +19 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_job_unittest.cc View 1 2 3 4 5 8 chunks +51 lines, -11 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.h View 3 chunks +6 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 3 4 5 8 chunks +34 lines, -12 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_version_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job.h View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job.cc View 1 2 3 4 5 3 chunks +5 lines, -12 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/service_worker/embedded_worker_messages.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_dispatcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_dispatcher.cc View 3 chunks +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h View 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 7 chunks +23 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp View 1 2 3 4 5 6 7 4 chunks +72 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebEmbeddedWorker.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h View 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
falken
This is ready for a look but not quite complete: - I want to add ...
4 years, 10 months ago (2016-02-05 13:08:49 UTC) #4
michaeln
lgtm https://codereview.chromium.org/1675613002/diff/1/content/browser/service_worker/embedded_worker_instance.h File content/browser/service_worker/embedded_worker_instance.h (right): https://codereview.chromium.org/1675613002/diff/1/content/browser/service_worker/embedded_worker_instance.h#newcode117 content/browser/service_worker/embedded_worker_instance.h:117: bool pause_after_download = false); i think our style ...
4 years, 10 months ago (2016-02-06 01:13:59 UTC) #5
nhiroki
LGTM https://codereview.chromium.org/1675613002/diff/1/content/browser/service_worker/embedded_worker_instance.cc File content/browser/service_worker/embedded_worker_instance.cc (right): https://codereview.chromium.org/1675613002/diff/1/content/browser/service_worker/embedded_worker_instance.cc#newcode422 content/browser/service_worker/embedded_worker_instance.cc:422: if (process_id() == ChildProcessHost::kInvalidUniqueID) We may also need ...
4 years, 10 months ago (2016-02-10 04:56:15 UTC) #6
falken
Thanks for the reviews. This patch is doing a lot in WebEmbeddedWorkerImplTest, and the PRESUBMIT ...
4 years, 10 months ago (2016-02-10 05:40:41 UTC) #7
falken
Spun off https://codereview.chromium.org/1687803002/
4 years, 10 months ago (2016-02-10 06:14:25 UTC) #8
nhiroki
https://codereview.chromium.org/1675613002/diff/1/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/1675613002/diff/1/content/browser/service_worker/service_worker_register_job.cc#newcode578 content/browser/service_worker/service_worker_register_job.cc:578: void ServiceWorkerRegisterJob::OnScriptLoaded() { On 2016/02/10 05:40:40, falken wrote: > ...
4 years, 10 months ago (2016-02-10 06:38:29 UTC) #9
falken
https://codereview.chromium.org/1675613002/diff/1/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/1675613002/diff/1/content/browser/service_worker/service_worker_register_job.cc#newcode578 content/browser/service_worker/service_worker_register_job.cc:578: void ServiceWorkerRegisterJob::OnScriptLoaded() { On 2016/02/10 06:38:29, nhiroki (slow) wrote: ...
4 years, 10 months ago (2016-02-10 06:53:40 UTC) #10
nhiroki
On 2016/02/10 06:53:40, falken wrote: > https://codereview.chromium.org/1675613002/diff/1/content/browser/service_worker/service_worker_register_job.cc > File content/browser/service_worker/service_worker_register_job.cc (right): > > https://codereview.chromium.org/1675613002/diff/1/content/browser/service_worker/service_worker_register_job.cc#newcode578 > ...
4 years, 10 months ago (2016-02-12 04:05:36 UTC) #11
falken
PTAL. This patch has been updated after landing the intermediate patch <https://codereview.chromium.org/1687803002/>. The new code ...
4 years, 10 months ago (2016-02-15 07:04:50 UTC) #12
nhiroki
Looks good. Can you fix compile failures on win bots and memory leak on linux ...
4 years, 10 months ago (2016-02-15 09:11:04 UTC) #13
falken
I'm pretty sure the memory leak is innocuous: the test runner just needs to learn ...
4 years, 10 months ago (2016-02-17 04:13:08 UTC) #14
falken
tkent: can you review web/?
4 years, 10 months ago (2016-02-17 04:17:25 UTC) #16
tkent
lgtm
4 years, 10 months ago (2016-02-17 04:46:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675613002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675613002/140001
4 years, 10 months ago (2016-02-17 05:34:53 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/146708)
4 years, 10 months ago (2016-02-17 05:46:13 UTC) #22
falken
+tsepez: please review messages
4 years, 10 months ago (2016-02-17 05:57:18 UTC) #24
Tom Sepez
Messages LGTM
4 years, 10 months ago (2016-02-17 17:46:19 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675613002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675613002/140001
4 years, 10 months ago (2016-02-17 23:33:47 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-17 23:40:28 UTC) #29
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/42bc9253c79fa01fc6a6af5b3908dcc063a12023 Cr-Commit-Position: refs/heads/master@{#376032}
4 years, 10 months ago (2016-02-17 23:41:28 UTC) #31
Nico
4 years, 10 months ago (2016-02-18 13:47:01 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1710903002/ by thakis@chromium.org.

The reason for reverting is:
https://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20LSan%20T...
got much more flaky after this landed. Speculatively revert and see if it helps.
See also http://crbug.com/586897.

Powered by Google App Engine
This is Rietveld 408576698