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

Issue 2059953003: service worker: Fix the type of a register promise reject value (Closed)

Created:
4 years, 6 months ago by e_hakkinen
Modified:
4 years, 5 months ago
Reviewers:
falken, shimazu, horo
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, haraken, kinuko+serviceworker, blink-reviews, horo+watch_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 a register promise reject value This CL changes the type of the register promise reject value to be TypeError (instead of AbortError or NetworkError) if the register promise is rejected because an uncaught runtime script error occured during Run Service Worker algorithm. BUG=617881 Committed: https://crrev.com/0f261ebcb6c9cc48e98f736a0253fa9aa336a898 Cr-Commit-Position: refs/heads/master@{#404388}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Error handling unification #

Total comments: 2

Patch Set 3 : Use ServiceWorkerErrorForUpdate directly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -11 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-iframe.html View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/registration-tests.js View 8 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (8 generated)
e_hakkinen
4 years, 6 months ago (2016-06-10 20:40:12 UTC) #4
falken
https://codereview.chromium.org/2059953003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp (right): https://codereview.chromium.org/2059953003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp#newcode86 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp:86: break; Why are these types the ones in the ...
4 years, 6 months ago (2016-06-14 02:29:18 UTC) #6
e_hakkinen
https://codereview.chromium.org/2059953003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp (right): https://codereview.chromium.org/2059953003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp#newcode86 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp:86: break; On 2016/06/14 02:29:18, falken wrote: > Why are ...
4 years, 5 months ago (2016-07-08 12:21:13 UTC) #7
falken
great, lgtm https://codereview.chromium.org/2059953003/diff/40001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp (right): https://codereview.chromium.org/2059953003/diff/40001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp#newcode84 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp:84: m_resolver->reject(ServiceWorkerErrorForRegister::take(m_resolver.get(), error)); optional nit: mm.. I'd just ...
4 years, 5 months ago (2016-07-08 12:39:46 UTC) #8
e_hakkinen
https://codereview.chromium.org/2059953003/diff/40001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp (right): https://codereview.chromium.org/2059953003/diff/40001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp#newcode84 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp:84: m_resolver->reject(ServiceWorkerErrorForRegister::take(m_resolver.get(), error)); On 2016/07/08 12:39:46, falken wrote: > optional ...
4 years, 5 months ago (2016-07-08 12:48:51 UTC) #9
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/2059953003/60001
4 years, 5 months ago (2016-07-08 12:49:43 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 5 months ago (2016-07-08 14:52:49 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 14:54:25 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0f261ebcb6c9cc48e98f736a0253fa9aa336a898
Cr-Commit-Position: refs/heads/master@{#404388}

Powered by Google App Engine
This is Rietveld 408576698