Closed Bug 1221772 Opened 9 years ago Closed 4 years ago

Show service worker logs in the webconsole if it's scope matches the scriptURL of a matching Worker / SharedWorker on the page

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1592584

People

(Reporter: bgrins, Unassigned)

References

(Blocks 1 open bug)

Details

+++ This bug was initially created as a clone of Bug #1213932 +++

This is a follow up Bug 1213932.  See: https://bugzilla.mozilla.org/show_bug.cgi?id=1213932#c15.

The situation is that a page at https://foo.com/index.html loads a Worker at https://foo.com/lib/background.js, and then does `.register('sw.js', { scope: './lib' })`.

In this case the log won't show up after Bug 1213932, since the scope won't match https://foo.com/index.html.  We would need to iterate all workers and match a SW message on their scriptURLs also.
As per https://bugzilla.mozilla.org/show_bug.cgi?id=1223116#c7, Bug 1223116 took a step towards fixing this but we also need to extend the shouldReportToWindow logic to include the Worker's parent document in the list of registering documents.  And this should be somehow part of fixing Bug 1032521.
Blocks: 1032521
Depends on: 1223116
No longer depends on: 1223116
Blocks: sw-devtools
Blocks: dt-service-worker
No longer blocks: sw-devtools, 1032521
Depends on: 1032521
Product: Firefox → DevTools
Priority: -- → P2

Nicolas, isn't there another bug that we can dupe this one against that looks at how the console connects to SWs?

Flags: needinfo?(nchevobbe)

Answered my own question.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Flags: needinfo?(nchevobbe)
You need to log in before you can comment on or make changes to this bug.