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

Issue 567903002: ServiceWorker: Change worker script fetch error code(2/3). (Closed)

Created:
6 years, 3 months ago by xiang
Modified:
6 years, 3 months ago
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Change worker script fetch error code. Change worker script fetch error code in "Update" algorithm to align with spec: Non 2xx response will be rejected with NetworkError; Redirected response will be rejected with SecurityError; Reponse with Wrong MIME type will be rejected with SecurityError. (1/3): https://codereview.chromium.org/546353003/ (2/3): this (3/3): Layout test & Blink side cleanup BUG=408421 TEST=http/tests/serviceworker Committed: https://crrev.com/1987a8265654383711fc0bba427339f7eead944f Cr-Commit-Position: refs/heads/master@{#295940}

Patch Set 1 #

Total comments: 6

Patch Set 2 : review update #

Total comments: 4

Patch Set 3 : fix #

Patch Set 4 : rebase & fix typo #

Total comments: 1

Messages

Total messages: 18 (7 generated)
xiang
PTAL, thanks!
6 years, 3 months ago (2014-09-12 05:08:32 UTC) #2
michaeln
https://codereview.chromium.org/567903002/diff/1/content/browser/service_worker/service_worker_version.h File content/browser/service_worker/service_worker_version.h (right): https://codereview.chromium.org/567903002/diff/1/content/browser/service_worker/service_worker_version.h#newcode223 content/browser/service_worker/service_worker_version.h:223: void NotifyStartWorkerURLRequestError(ServiceWorkerStatusCode status); The 'start callbacks' are already being ...
6 years, 3 months ago (2014-09-13 01:21:35 UTC) #3
xiang
Thanks for the review, CL update. Would you take a look again? https://codereview.chromium.org/567903002/diff/1/content/browser/service_worker/service_worker_version.h File content/browser/service_worker/service_worker_version.h ...
6 years, 3 months ago (2014-09-16 06:24:31 UTC) #4
michaeln
https://codereview.chromium.org/567903002/diff/20001/content/browser/service_worker/service_worker_write_to_cache_job.cc File content/browser/service_worker/service_worker_write_to_cache_job.cc (right): https://codereview.chromium.org/567903002/diff/20001/content/browser/service_worker/service_worker_write_to_cache_job.cc#newcode71 content/browser/service_worker/service_worker_write_to_cache_job.cc:71: url_, net::URLRequestStatus()); please report a status that doesn't indicate ...
6 years, 3 months ago (2014-09-16 19:42:40 UTC) #5
xiang
PTAL, thanks! https://codereview.chromium.org/567903002/diff/20001/content/browser/service_worker/service_worker_write_to_cache_job.cc File content/browser/service_worker/service_worker_write_to_cache_job.cc (right): https://codereview.chromium.org/567903002/diff/20001/content/browser/service_worker/service_worker_write_to_cache_job.cc#newcode71 content/browser/service_worker/service_worker_write_to_cache_job.cc:71: url_, net::URLRequestStatus()); On 2014/09/16 19:42:40, michaeln wrote: ...
6 years, 3 months ago (2014-09-17 02:39:26 UTC) #8
michaeln1
lgtm, thanx for working on this!
6 years, 3 months ago (2014-09-17 19:34:47 UTC) #10
michaeln
lgtm 2 (doh, i keep doing that)
6 years, 3 months ago (2014-09-17 19:35:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/567903002/120001
6 years, 3 months ago (2014-09-22 07:56:53 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:120001) as ef03516f1af815ef0d99a8dd302a73c566bc9741
6 years, 3 months ago (2014-09-22 08:49:12 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/1987a8265654383711fc0bba427339f7eead944f Cr-Commit-Position: refs/heads/master@{#295940}
6 years, 3 months ago (2014-09-22 08:49:59 UTC) #16
horo
6 years, 3 months ago (2014-09-24 12:55:32 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/567903002/diff/120001/content/browser/service...
File content/browser/service_worker/service_worker_register_job.cc (right):

https://codereview.chromium.org/567903002/diff/120001/content/browser/service...
content/browser/service_worker/service_worker_register_job.cc:360: NOTREACHED();
Why don't we handle other error types?

Powered by Google App Engine
This is Rietveld 408576698