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)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox43 --- affected

People

(Reporter: marco, Unassigned)

References

Details

No description provided.
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.
> 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.
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
Yes, under the "Logging" sub-tab in the console tab. Select the Service Worker entry.
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.