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

Issue 813673005: Service Worker: Improve some exception messages (Chromium). (Closed)

Created:
5 years, 11 months ago by falken
Modified:
5 years, 11 months ago
CC:
chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, nhiroki, 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: Improve some exception messages (Chromium). - Prefix the error messages to indicate the operation that failed (particularly helps when the error occurs in a promise chain) - Add more details to the error messages. Example improvements: Before: "URL too long" After: "Failed to register a ServiceWorker: The provided scriptURL or scope is too long." Before: "The scope must be under the directory of the script URL." After: "Failed to register a ServiceWorker: The path of the provided scope ('http://localhost:9898/mysecretpath') is not under the directory of the provided scriptURL ('http://localhost:9898/resources/empty-worker.js')." BUG=436928 Committed: https://crrev.com/737a4ba8e6a63814c49f6bb5597e238275a3a810 Cr-Commit-Position: refs/heads/master@{#311428}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : simplify #

Patch Set 4 : typo #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -52 lines) Patch
M content/browser/service_worker/service_worker_dispatcher_host.cc View 11 chunks +35 lines, -39 lines 2 comments Download
M content/browser/service_worker/service_worker_utils.cc View 2 chunks +7 lines, -7 lines 4 comments Download
M content/child/service_worker/service_worker_dispatcher.cc View 1 2 3 4 chunks +17 lines, -6 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
falken
5 years, 11 months ago (2015-01-13 07:14:06 UTC) #2
dominicc (has gone to gerrit)
LGTM One question inline I'm interested in, the comments are just suggestions. https://codereview.chromium.org/813673005/diff/60001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc ...
5 years, 11 months ago (2015-01-14 06:16:38 UTC) #3
falken
Thanks for the review. https://codereview.chromium.org/813673005/diff/60001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/813673005/diff/60001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode863 content/browser/service_worker/service_worker_dispatcher_host.cc:863: base::ASCIIToUTF16(kServiceWorkerRegisterErrorPrefix) + error_message)); On 2015/01/14 ...
5 years, 11 months ago (2015-01-14 07:29:21 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/813673005/60001
5 years, 11 months ago (2015-01-14 07:31:48 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/48861)
5 years, 11 months ago (2015-01-14 07:36:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/813673005/60001
5 years, 11 months ago (2015-01-14 07:38:51 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 11 months ago (2015-01-14 08:30:37 UTC) #11
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 08:31:24 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/737a4ba8e6a63814c49f6bb5597e238275a3a810
Cr-Commit-Position: refs/heads/master@{#311428}

Powered by Google App Engine
This is Rietveld 408576698