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

Issue 2054203002: service worker: Fix the type of an update promise reject value (Closed)

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

Description

service worker: Fix the type of an update promise reject value This CL changes the type of the update promise reject value to be TypeError (instead of AbortError or NetworkError) if the update promise is rejected because an uncaught runtime script error occured during Run Service Worker algorithm. BUG=617881 Committed: https://crrev.com/fc99c082b8d4f4ef333aab1abf0f953e2b304ad0 Cr-Commit-Position: refs/heads/master@{#404140}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Layout tests, comment #

Patch Set 3 : Error handling unification #

Total comments: 8

Patch Set 4 : Layout test nits #

Total comments: 2

Patch Set 5 : Comment #

Total comments: 1

Patch Set 6 : FIXME => TODO #

Messages

Total messages: 28 (11 generated)
e_hakkinen
PTAL. The SW specification has been changed so that reject value should now be a ...
4 years, 6 months ago (2016-06-10 20:39:20 UTC) #2
falken
Thanks for working on this. I'm not totally sure this is the right approach, comments ...
4 years, 6 months ago (2016-06-14 02:27:53 UTC) #4
e_hakkinen
On 2016/06/14 02:27:53, falken wrote: > I'm not totally sure this is the right approach, ...
4 years, 6 months ago (2016-06-16 20:55:14 UTC) #5
falken
OK I think this approach may be OK. It feels like our error handling could ...
4 years, 6 months ago (2016-06-17 02:12:14 UTC) #6
e_hakkinen
https://codereview.chromium.org/2054203002/diff/1/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp (right): https://codereview.chromium.org/2054203002/diff/1/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp#newcode44 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp:44: case WebServiceWorkerError::ErrorTypeType: { On 2016/06/17 02:12:14, falken wrote: > ...
4 years, 6 months ago (2016-06-17 12:29:18 UTC) #8
falken
Thanks, this looks good. Just some nits. https://codereview.chromium.org/2054203002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/update.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/update.html (right): https://codereview.chromium.org/2054203002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/update.html#newcode96 third_party/WebKit/LayoutTests/http/tests/serviceworker/update.html:96: 'new installing ...
4 years, 6 months ago (2016-06-20 08:41:14 UTC) #9
e_hakkinen
Back in action. Sorry for delay. https://codereview.chromium.org/2054203002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/update.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/update.html (right): https://codereview.chromium.org/2054203002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/update.html#newcode96 third_party/WebKit/LayoutTests/http/tests/serviceworker/update.html:96: 'new installing should ...
4 years, 5 months ago (2016-07-05 18:29:00 UTC) #10
falken
Welcome back and sorry for my delay too. lgtm! https://codereview.chromium.org/2054203002/diff/80001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp (right): https://codereview.chromium.org/2054203002/diff/80001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp#newcode111 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp:111: ...
4 years, 5 months ago (2016-07-07 01:43:41 UTC) #11
e_hakkinen
https://codereview.chromium.org/2054203002/diff/80001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp (right): https://codereview.chromium.org/2054203002/diff/80001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp#newcode111 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp:111: // According to the spec, network and runtime script ...
4 years, 5 months ago (2016-07-07 06:33:05 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2054203002/100001
4 years, 5 months ago (2016-07-07 06:33:34 UTC) #14
e_hakkinen
+@haraken: third_party/WebKit/Source/bindings/core/v8/CallbackPromiseAdapter.h PTAL.
4 years, 5 months ago (2016-07-07 06:41:01 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/258339)
4 years, 5 months ago (2016-07-07 07:52:58 UTC) #19
haraken
bindings LGTM https://codereview.chromium.org/2054203002/diff/100001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp (right): https://codereview.chromium.org/2054203002/diff/100001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp#newcode59 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp:59: // FIXME: Introduce new ActivateError type to ...
4 years, 5 months ago (2016-07-07 08:15:10 UTC) #20
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/2054203002/120001
4 years, 5 months ago (2016-07-07 11:31:00 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 5 months ago (2016-07-07 12:45:01 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 12:45:06 UTC) #26
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 12:47:36 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/fc99c082b8d4f4ef333aab1abf0f953e2b304ad0
Cr-Commit-Position: refs/heads/master@{#404140}

Powered by Google App Engine
This is Rietveld 408576698