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

Issue 1481523006: ServiceWorker: Should throw TypeError instead of Unknown/SecurityError. (Closed)

Created:
5 years ago by zino
Modified:
5 years ago
Reviewers:
tkent, nhiroki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Should throw TypeError instead of Unknown/SecurityError. If navigate() or openWindow() faces errors during navigation, we should throw TypeError instead of UnknownError or SecurityError. They aren't defined anywhere in the spec[1] as well as, especially UnknownError is only used in IndexedDB[2]. To match the spec, this change adds ErrorTypeNavigation and then process it via NavigateClientCallback instead of CallbackPromiseAdapter. [1] http://slightlyoff.github.io/ServiceWorker/spec/service_worker [2] http://www.w3.org/TR/IndexedDB/#h-exceptions BUG=500911, 540503 Committed: https://crrev.com/fea1cbc16107faa81a589b070ff857d64a0f56e3 Cr-Commit-Position: refs/heads/master@{#363435}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Messages

Total messages: 38 (18 generated)
zino
Please take a look. Thank you.
5 years ago (2015-11-26 10:37:47 UTC) #3
nhiroki
https://codereview.chromium.org/1481523006/diff/1/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp (right): https://codereview.chromium.org/1481523006/diff/1/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp#newcode81 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp:81: if (error.errorType == WebServiceWorkerError::ErrorTypeUnknown) { I'd prefer not to ...
5 years ago (2015-11-27 03:25:13 UTC) #4
zino
Thank you for review. I've just uploaded a new patch set. PTAL. https://codereview.chromium.org/1481523006/diff/1/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp ...
5 years ago (2015-11-27 03:41:29 UTC) #5
nhiroki
Looks good. Can you update the CL description based on the latest patch set? https://codereview.chromium.org/1481523006/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp ...
5 years ago (2015-11-27 07:52:01 UTC) #6
zino
Thank you for review. PTAL again. https://codereview.chromium.org/1481523006/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp (right): https://codereview.chromium.org/1481523006/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp#newcode64 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp:64: class NavigateClientCallback : ...
5 years ago (2015-11-30 05:57:31 UTC) #12
zino
+ tkent@ for Blink/public/* PTAL.
5 years ago (2015-11-30 05:58:27 UTC) #13
tkent
On 2015/11/30 at 05:58:27, jinho.bang wrote: > + tkent@ for Blink/public/* > > PTAL. third_party/WebKit/public/ ...
5 years ago (2015-11-30 06:13:03 UTC) #14
nhiroki
LGTM, sorry for my delayed response.
5 years ago (2015-12-04 07:17:21 UTC) #15
zino
On 2015/12/04 07:17:21, nhiroki wrote: > LGTM, sorry for my delayed response. No problem. I ...
5 years ago (2015-12-04 19:40:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481523006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481523006/40001
5 years ago (2015-12-04 19:41:54 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/87805)
5 years ago (2015-12-04 20:34:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481523006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481523006/40001
5 years ago (2015-12-05 02:08:33 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/150573)
5 years ago (2015-12-05 03:29:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481523006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481523006/40001
5 years ago (2015-12-05 07:03:02 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/150612)
5 years ago (2015-12-05 08:23:55 UTC) #28
zino
On 2015/12/05 08:23:55, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years ago (2015-12-07 06:43:06 UTC) #30
nhiroki
lgtm
5 years ago (2015-12-07 06:54:54 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481523006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481523006/80001
5 years ago (2015-12-07 08:12:06 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years ago (2015-12-07 09:57:58 UTC) #36
commit-bot: I haz the power
5 years ago (2015-12-07 09:59:05 UTC) #38
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fea1cbc16107faa81a589b070ff857d64a0f56e3
Cr-Commit-Position: refs/heads/master@{#363435}

Powered by Google App Engine
This is Rietveld 408576698