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

Issue 1063823005: Service Worker: Use more specific errors when StartWorker fails (Closed)

Created:
5 years, 8 months ago by falken
Modified:
5 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, johnme+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+watch, kinuko+serviceworker, michaeln, mlamouri+watch-notifications_chromium.org, nhiroki, peter+watch_chromium.org, 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: Use more specific errors when StartWorker fails UMA shows StartWorker fails more than expected, but most errors are just the generic START_WORKER_FAILED. Use a more specific error when appropriate. This has some user-visible behavior change in the error message that register() rejects with. For example, a syntax error used to fail with "ServiceWorker failed to install"; now it fails with "ServiceWorker script evaluation failed". A Blink layout test is added for error messages, which didn't have test coverage previously. BUG=448003 TEST=https://codereview.chromium.org/1058323004 Committed: https://crrev.com/9573d4d33bf81518dd38c732bd18bfb8851bb89a Cr-Commit-Position: refs/heads/master@{#325261}

Patch Set 1 #

Total comments: 2

Patch Set 2 : update histograms.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -40 lines) Patch
M content/browser/notifications/notification_event_dispatcher_impl.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_router.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_process_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_process_manager.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 chunk +6 lines, -17 lines 0 comments Download
M content/browser/service_worker/service_worker_registration_status.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 4 chunks +29 lines, -4 lines 0 comments Download
M content/common/service_worker/service_worker_status_code.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_status_code.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
falken
PTAL
5 years, 8 months ago (2015-04-15 05:44:09 UTC) #2
nhiroki
LGTM https://codereview.chromium.org/1063823005/diff/1/content/common/service_worker/service_worker_status_code.h File content/common/service_worker/service_worker_status_code.h (right): https://codereview.chromium.org/1063823005/diff/1/content/common/service_worker/service_worker_status_code.h#newcode64 content/common/service_worker/service_worker_status_code.h:64: SERVICE_WORKER_ERROR_SCRIPT_EVALUATE_FAILED, Probably you need to update histograms.xml.
5 years, 8 months ago (2015-04-15 06:46:02 UTC) #3
falken
https://codereview.chromium.org/1063823005/diff/1/content/common/service_worker/service_worker_status_code.h File content/common/service_worker/service_worker_status_code.h (right): https://codereview.chromium.org/1063823005/diff/1/content/common/service_worker/service_worker_status_code.h#newcode64 content/common/service_worker/service_worker_status_code.h:64: SERVICE_WORKER_ERROR_SCRIPT_EVALUATE_FAILED, On 2015/04/15 06:46:02, nhiroki wrote: > Probably you ...
5 years, 8 months ago (2015-04-15 06:54:37 UTC) #4
falken
adding OWNERS... asvitkine: histogram peter: push mkwst: notifications
5 years, 8 months ago (2015-04-15 06:58:40 UTC) #6
Mike West
notifications LGTM.
5 years, 8 months ago (2015-04-15 07:05:30 UTC) #7
Peter Beverloo
On 2015/04/15 07:05:30, Mike West wrote: > notifications LGTM. push LGTM.
5 years, 8 months ago (2015-04-15 11:26:44 UTC) #8
Alexei Svitkine (slow)
lgtm
5 years, 8 months ago (2015-04-15 15:34:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1063823005/20001
5 years, 8 months ago (2015-04-15 15:41:33 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-15 16:49:58 UTC) #13
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 16:50:49 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9573d4d33bf81518dd38c732bd18bfb8851bb89a
Cr-Commit-Position: refs/heads/master@{#325261}

Powered by Google App Engine
This is Rietveld 408576698