Closed
Bug 1201953
Opened 9 years ago
Closed 9 years ago
console.log in a service worker doesn't log to the web console but logs to the browser console
Categories
(Core :: DOM: Service Workers, defect)
Core
DOM: Service Workers
Tracking
()
RESOLVED
WORKSFORME
Tracking | Status | |
---|---|---|
firefox43 | --- | affected |
People
(Reporter: marco, Unassigned)
References
Details
No description provided.
Comment 1•9 years ago
|
||
This is filed under service worker. Are you doing your console.log() in the SW script? Are you saying the devtools option to show the output in web console stops working?
A test case would be useful.
Reporter | ||
Comment 2•9 years ago
|
||
> Are you doing your console.log() in the SW script?
Yes. I've simply added a console.log() in the fetch event listener.
> Are you saying the devtools option to show the output in web console stops working?
Is there an option to enable console.log() from service workers?
By default it doesn't work for me (logs aren't shown in the web console but are shown in the browser console).
I'm updating the bug title because the restart thing was my mistake.
Reporter | ||
Updated•9 years ago
|
Summary: console.log doesn't log to the web console and logs to the browser console only after restarting Firefox → console.log in a service worker doesn't log to the web console but logs to the browser console
Comment 3•9 years ago
|
||
Yes, under the "Logging" sub-tab in the console tab. Select the Service Worker entry.
Reporter | ||
Comment 4•9 years ago
|
||
Thank you!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•