Closed Bug 1644658 Opened 4 years ago Closed 2 years ago

Remove usages of loadstart & loadend events in screenshots code

Categories

(Firefox :: Headless, task)

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: freddy, Assigned: smaug)

References

Details

Attachments

(1 file)

We want to unship loadstart and loadend for web compatibility in Bug 1574487.

We could just stop exposing it to content and keeping it chrome-only, but given the little amount of consumers, it would be best to completely remove the code.

This bug is about removing loadend/loadstart code in e.g.,

I'm going through all the untriaged bugs in my team's components. I don't know if this bug is still relevant, but I do know that it doesn't belong in Shell Integration. Despite the broad name, the Shell Integration component is only intended for bugs related to determining if Firefox is the default browser, setting Firefox as the default browser, and setting the desktop background.

Moving this to what I hope is a more appropriate component.

Component: Shell Integration → DOM: Core & HTML
Product: Firefox → Core

Anne, could you set proper priority/serverity?

Flags: needinfo?(annevk)

This is a problem with Firefox, not Platform code. Moving it to Firefox General as I'm not sure what the correct component would be for the issue mentioned in comment 0.

Blocks: 1574487
Component: DOM: Core & HTML → General
Flags: needinfo?(annevk)
Product: Core → Firefox
Component: General → Screenshots
Component: Screenshots → Headless

This seems to be still an issue https://searchfox.org/mozilla-central/rev/bfa4dfd40b8fe6f1a6504e86b5ad2c5fd402bfc0/browser/components/shell/test/head.js#96-97
loadstart and loadend add quite a bit overhead because they effectively flood the main thread with simple tasks, so I'd like to remove them sooner than later.

Assignee: nobody → smaug
Attachment #9299635 - Attachment description: WIP: Bug 1644658 - Remove usages of <img> loadend events in screenshots code, r=mconley → Bug 1644658 - Remove usages of <img> loadend events in screenshots code, r=mconley
Status: NEW → ASSIGNED
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7fe2c7526246
Remove usages of <img> loadend events in screenshots code, r=mconley

Backed out for causing mochitest failures on browser_staticPartition_saveAs.js

Backout link

Push with failures

Failure log

Flags: needinfo?(smaug)
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/029f79627075
Remove usages of <img> loadend events in screenshots code, r=mconley
Flags: needinfo?(smaug)
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: