This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27276 - Ensure importScripts("http://... 404 error ...") is clearly defined
Summary: Ensure importScripts("http://... 404 error ...") is clearly defined
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/#importi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-07 17:53 UTC by contributor
Modified: 2015-09-22 06:55 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2014-11-07 17:53:30 UTC
Specification: https://html.spec.whatwg.org/multipage/workers.html
Multipage: https://html.spec.whatwg.org/multipage/#importing-scripts-and-libraries
Complete: https://html.spec.whatwg.org/#importing-scripts-and-libraries
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
Ensure importScripts("http://... 404 error ...") is clearly defined

Posted from: 91.182.51.213 by ms2ger@gmail.com
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
Comment 1 Ms2ger 2014-11-07 17:54:53 UTC
http://www.w3c-test.org/workers/WorkerGlobalScope_importScripts_NetworkErr.htm tests for a NetworkError.
Comment 2 contributor 2015-01-06 23:58:30 UTC
Checked in as WHATWG revision r8874.
Check-in comment: Clarify what 'failed' means in importScripts().
https://html5.org/tools/web-apps-tracker?from=8873&to=8874
Comment 3 Anne 2015-01-07 08:51:12 UTC
That's almost certainly not what's implemented though. HTTP 404 error is executed for scripts. Only actual network errors cause failure.
Comment 4 Ian 'Hixie' Hickson 2015-01-08 18:45:16 UTC
We should fix that for importScripts(), unless someone relies on it.
Comment 5 Anne 2015-01-09 06:27:16 UTC
Why? What's the advantage? And what set of status codes should we accept instead post-redirect? 200-299?
Comment 6 Ian 'Hixie' Hickson 2015-01-09 23:35:06 UTC
The advantage is just to reduce the amount of script that gets executed when the author isn't expecting script to be executed. Just like honouring MIME types or magic signatures.
Comment 7 Anne 2015-09-22 06:55:52 UTC
https://github.com/whatwg/html/pull/166