Closed Bug 1604679 Opened 4 years ago Closed 3 months ago

Service Worker logs don't show up in Console for some debug sessions

Categories

(Core :: DOM: Service Workers, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1429805

People

(Reporter: Harald, Unassigned)

References

(Blocks 2 open bugs)

Details

STR:

AR: No logs
ER: Logs for different SW phases

I assume, with limited technical understanding, that in some cases the SW is on a different process and logs are not captured for that process.

Julian, if I remember correctly this was a discussion in Slack. Do you know what the next action was to make this work, or if this was blocked by Fission?

Flags: needinfo?(jdescottes)

Maybe we should dupe against bug 1429805, still gathering feedback.

I think your analysis is correct, and sometimes the sw will run in the same process as the content page (and therefore logs show up in the console), sometimes it doesn't.

By the way I suppose that the logs you are expecting are the ones that show up after clicking on "update", eg

11:00:50.615             v21 pending             sw.js:3:9
11:00:50.619             v21 installing [object ExtendableEvent]             sw.js:6:11
11:00:52.619             v21 installed [object ServiceWorkerGlobalScope]             sw.js:9:15

I remember Perry mentioned that they could enforce running the sw in the same process as the content page? That would be one way of fixing this. Otherwise, more involved solutions are already discussed in the bug you found, Bug 1429805.

Flags: needinfo?(jdescottes)

I quickly tested this by adding the PID/targetId as the title of the message, and we can verify that the messages logged in the regular content console are the ones emitted in the same process as the content page.

Depends on: 1592584
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 3 months ago
Duplicate of bug: 1429805
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.