Open Bug 1246289 Opened 8 years ago Updated 3 months ago

network panel shows no error for missing file referenced in arguments to serviceWorker.register


(DevTools :: Netmonitor, defect, P3)

30 Branch


(Not tracked)



(Reporter: bwalker, Unassigned)


(Blocks 1 open bug)


(Whiteboard: [swdev-m1])


(1 file)


1. as of 2016-02-05, visit


network panel will a failure to retrieve


network panel shows nothing
> network panel will a failure to retrieve

that should have read "network panel will show a failure"
I don't think network panel shows requests made from within the service worker either.  Alexander, any ideas on how to fix this?
Flags: needinfo?(poirot.alex)
Firefox also doesn't show any error in the console, Chrome does.
The .register() does reject its promise, though.  Message is like this:

  TypeError: ServiceWorker script at for scope encountered an error during installation.
Its unclear to me how many exceptions and promise rejections we should auto-copy to the console.  The script author can decide how to handle them.
The network panel should track requests being intercepted by the SW and the request being made by the SW.
But it still miss the requests being made to the Service worker *script* itself, which seems to be.

I highlighted this issue while globally fixing network panel for service worker.
This issue is that there is no way to identify to which tab a service worker script request is related.
Requests being made to the script itself are global and don't contain any context that may relates to any tab. the nsIHttpChannel object miss some critical bits, it's nsILoadContext should have a associatedWindow or topFrameElement being set by the platform code.
Flags: needinfo?(poirot.alex)
I don't know if that would be possible to tweak that in

The load group seems to be defined over here. Am It correct?
This comments seems to say we try to ensure the nsILoadContext is correct, but it looks like it isn't at the end.
Whiteboard: [swdev-m1]
Assignee: nobody → bhsu
Closed: 7 years ago
Resolution: --- → DUPLICATE
Sorry, I was just marking this bug can be solved together with 1267119 which I currently have a WIP patch to save them both...
Resolution: DUPLICATE → ---
Per Ho-Pang, this depends on SW redesign clientID. We might need more investigation here.
Assignee: bhsu → nobody
Priority: P2 → P3
Product: Firefox → DevTools
Severity: normal → S3

Adding a working STR

  1. Go to
  2. Open the netmonitor
  3. Refresh to see all requests


See 404 request for service worker file sw.js in the netmonitor.


No request for sw.js is displayed in the netmonitor.

Attached image Chrome SW requests

Adding a screenshot from chrome, showing the request.

Depends on: 1865784
You need to log in before you can comment on or make changes to this bug.