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