Closed Bug 1416392 Opened 7 years ago Closed 6 years ago

worker script loads set wrong accept header

Categories

(Core :: DOM: Workers, enhancement, P2)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1417463

People

(Reporter: bkelly, Unassigned)

References

(Blocks 1 open bug)

Details

I wrote a glitch to echo our FetchEvent attributes: https://fetch-event-echo.glitch.me/ I noticed while using this that we set a pretty bogus accept header for worker scripts: accept,text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 It seems completely wrong to be advertising text/html here.
Note, if you want to try the glitch, you need to manually load a worker through the web console: var w = new Worker('worker-location.js');
Priority: -- → P2
Per step 1.3 here we should be setting "*/*" for worker scripts: https://fetch.spec.whatwg.org/#fetching
Depends on: 1417463
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.