Empty Service Worker error message in webconsole
Categories
(Core :: DOM: Service Workers, defect, P3)
Tracking
()
People
(Reporter: nchevobbe, Unassigned)
References
(Blocks 1 open bug)
Details
Steps to reproduce
- Navigate to https://nifty-horesradish.glitch.me/
- Open webconsole
results
There are 2 error messages displayed:
TypeError: ServiceWorker script at https://nifty-horesradish.glitch.me/sw.js for scope https://nifty-horesradish.glitch.me/ encountered an error during installation.
and an empty error message
I investigated if there was anything wrong in the console codebase, but I think this empty message is coming from ServiceWorker code.
In ServiceWorkerPrivateImpl::ErrorReceived
, we call ServiceWorkerManager::HandleError
with an empty string for aMessage
: dom/serviceworkers/ServiceWorkerPrivateImpl.cpp#1011-1014
This empty message is then passed to various functions (dom/serviceworkers/ServiceWorkerManager.cpp#1453-1456 ), and in the end, is rendered in the webconsole.
We should ensure that messages we put in the console are helpful for the developers, which isn't really the case here, and makes the console look broken somehow.
Reporter | ||
Comment 1•5 years ago
|
||
Perry could you have a look please? I think you wrote this class. Thanks!
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Nicolas, seems like the glitch went down. Can you still reproduce this?
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Comment 3•5 years ago
|
||
arf, can't access it neither, and I can't remember what was done in this example ...
Updated•5 years ago
|
Description
•