Closed Bug 1307450 Opened 8 years ago Closed 2 years ago

Events onload & onerror for link tag are not called

Categories

(Core :: CSS Parsing and Computation, defect, P3)

49 Branch
x86_64
Windows 10
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: luis.robertop87, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:49.0) Gecko/20100101 Firefox/49.0
Build ID: 20160922113459

Steps to reproduce:

This is a similar issue that should be fixed in https://bugzilla.mozilla.org/show_bug.cgi?id=563176 but it still with live in Firefox 49.0.1

I added the next code (just for test)

var linkElement = document.createElement("link");
linkElement.rel = "preload";
linkElement.href = "somePath"; // change for a valid Path

linkElement.onload = function () { console.log("This log wont be printed"); };
linkElement.onerror = function () { console.log("This log wont be printed"); };


Actual results:

The events onerror & onload are not called


Expected results:

The events onerror & onload should be called
Severity: normal → major
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Priority: -- → P3

Hi luis.robertop87,

Could you please attach a test case for this issue or see if this is still reproducible on the latest Firefox version?

Flags: needinfo?(luis.robertop87)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:emilio, since the bug has high severity, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(luis.robertop87) → needinfo?(emilio)

Well we didn't implement link rel=preload at the time. now we do.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(emilio)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.