Closed
Bug 1221772
Opened 9 years ago
Closed 5 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)
DevTools
Console
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.
Reporter | ||
Comment 1•9 years ago
|
||
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.
Reporter | ||
Updated•9 years ago
|
Blocks: sw-devtools
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Priority: -- → P2
Comment 2•5 years ago
|
||
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)
Comment 3•5 years ago
|
||
Answered my own question.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Updated•5 years ago
|
Flags: needinfo?(nchevobbe)
You need to log in
before you can comment on or make changes to this bug.
Description
•