DescriptionService 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 #Messages
Total messages: 14 (4 generated)
|