Closed Bug 1574487 Opened 5 years ago Closed 2 years ago

Remove loadstart and loadend event from <img>

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: annevk, Assigned: smaug)

References

Details

(Keywords: site-compat)

Attachments

(1 file)

See https://github.com/whatwg/html/pull/4842. As bz remarks in bug 1501554 comment 5, this feature got added to the specification without much of a plan. It seems that Firefox somehow picked up part of it.

Simple test at https://github.com/web-platform-tests/wpt/pull/18499.

Bug 1264769 suggests we added loadend too, but I cannot reproduce.

Priority: -- → P3
Type: defect → task
Keywords: site-compat

There's at least some code for loadend events, so it should probably be removed too even if it doesn't work.

Summary: Remove loadstart event from <img> → Remove loadstart and loadend event from <img>

Is this bug as simple as it looks? E.g., similar to bug 1548773?
If so, can I take it? :-)

Flags: needinfo?(annevk)

Famous last words, but I would expect this to be fairly straightforward given the PR against HTML. And you don't even need to write new tests.

Flags: needinfo?(annevk)
Depends on: 1644656

I filed bug 1718651 about the onloadend event handler attribute, mentioning it here too so that this bug can be found when searching for it.

Depends on: 1644658
Severity: normal normal → S3 S3
Assignee: nobody → smaug
Attachment #9299637 - Attachment description: WIP: Bug 1574487 - Remove loadstart and loadend event from <img>, r=edgar → Bug 1574487 - Remove loadstart and loadend event from <img>, r=edgar
Status: NEW → ASSIGNED
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ccd076f67748
Remove loadstart and loadend event from <img>, r=edgar

Backed out for causing mochitest failures on browser_staticPartition_saveAs.js

Backout link

Push with failures

Failure log

Flags: needinfo?(smaug)

boo, I must have missed one case where the event is used.

Flags: needinfo?(smaug)
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/24e535a8836b
Remove loadstart and loadend event from <img>, r=edgar
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: