Bug 193497
| Summary: | <link> element load event never fired more than once | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dominic Farolino <domfarolino> |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | ap, bfulgham, cdumez, koivisto |
| Priority: | P2 | ||
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Dominic Farolino
Consider the following test: https://link-double-load.glitch.me/, which has a link rel=stylesheet. A script adds an onload event handler to the <link>, which is a function that indicates the number of times said handler is called. The script then sets the `href` attribute (to trigger a load) on the element twice. Safari and Chrome indicate the handler is called once, while Firefox indicates that the handler is called twice, which is the expected result.
I have not written WPTs for this, just have a POC in the form of the glitch page.
(See https://crbug.com/922618)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Brent Fulgham
Safari, Chrome, and Firefox all load once. This seems to be the proper behavior.