Closed Bug 1183983 Opened 10 years ago Closed 10 years ago

Enable interception of the channel created in document.open() through service workers

Categories

(Core :: DOM: Service Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox42 --- affected

People

(Reporter: jaoo, Unassigned)

References

Details

I'm not sure this is something we should do. On a no-serviceworker intercepted page, document.open AFAIK (and as far as the W3C spec says) does not do any fetch. It just opens a local stream so you can replace locally the content of a document with another thing. The server (if it exists) is never involved in this, so there's no 'fetch' that could be intercepted. So.. document.open(); document.write('<html><body>Hello world!</body></html>'); document.close(); should generate the same hello world page with or without service workers. Which is what happens right now. Ehsan, why do you think this should be intercepted?
Flags: needinfo?(ehsan)
Oh, sorry, I was looking at this code in a rush yesterday. We never open this channel, and I think we only use it for integration with load groups, getting the load flags and whatnot. So this is actually not a bug and there is nothing to intercept!
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(ehsan)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.