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)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 621276

People

(Reporter: erikvvold, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

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.
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
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.
Does Chrome fire error event even if the src points to a file in another directory?
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.
Probably a duplicate of one of the existing bugs on AsyncOpen throwing for file://
Whiteboard: DUPEME
Depends on: 282432
No longer depends on: 282432
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: