Closed
Bug 646214
Opened 14 years ago
Closed 13 years ago
onerror is not called when a script fails to load on the file: protocol
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 621276
People
(Reporter: erikvvold, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
381 bytes,
text/html
|
Details |
Steps to reproduce:
1. Download https://gist.github.com/893357#file_file_script.html some place on your hard drive.
2. open it
Expected Result:
An alert message that says "error"
Actual Result:
Nothing happens.
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
Confirmed against Mozilla/5.0 (Windows NT 5.1; rv:2.2a1pre) Gecko/20110330 Firefox/4.2a1pre ID:20110330030437 back to 1.9.1.
On GC 12 loading the Testcase loacally fires the Error.
Opera 11 shows the same Behavior like Fx btw.
Component: General → DOM: Core & HTML
Keywords: testcase
Product: Firefox → Core
QA Contact: general → general
Updated•14 years ago
|
OS: Windows XP → All
Hardware: x86 → All
IE seems to throw an error that can't be caught.
Webkit seems to do the expected behavior.
Gecko doesn't appear to do anything.
Comment 4•14 years ago
|
||
Does Chrome fire error event even if the src points to a file in another directory?
Comment 5•14 years ago
|
||
Although, that doesn't really matter, since it should never allow
loading such files. So firing error in those cases would be ok.
> Does Chrome fire error event even if the src points to a file in another
directory?
I get the same results in all browsers if the file the src is pointing to is deep in a descendant folder. I haven't tried parent folder's or other directories.
Comment 7•14 years ago
|
||
Probably a duplicate of one of the existing bugs on AsyncOpen throwing for file://
Whiteboard: DUPEME
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•