Open Bug 1739518 Opened 3 years ago Updated 3 years ago

Gif animations can no longer be easily stopped by extensions

Categories

(WebExtensions :: General, defect, P3)

Firefox 94
All
Unspecified
defect

Tracking

(firefox-esr91 unaffected, firefox93 unaffected, firefox94 wontfix, firefox95 wontfix, firefox96 wontfix)

Tracking Status
firefox-esr91 --- unaffected
firefox93 --- unaffected
firefox94 --- wontfix
firefox95 --- wontfix
firefox96 --- wontfix

People

(Reporter: soeren.hentzschel, Unassigned)

References

(Regression)

Details

(Keywords: regression)

STR:

  1. install an add-on like https://addons.mozilla.org/en-US/firefox/addon/superstop/
  2. load an website with Gif images like https://www.animierte-gifs.net/
  3. press the toolbar button

Expected:

The Gif animations stop.

Actual:

The images are still animated.

Flags: needinfo?(emilio)

So I unzipped that add-on and it's doing window.stop() and relying on it to stop the gif animation, which is precisely what we avoided in bug 1730834. I could make it do something different when called from an extension or something but it seems sub-optimal. We could expose an extension API to stop animations. I commented in https://github.com/gavinsharp/SuperStop/issues/16 about this, happy to help there.

Flags: needinfo?(emilio)
Severity: -- → S3
Priority: -- → P3
Product: Core → WebExtensions
Summary: Gif animation can no longer be canceled (by add-on) → Gif animations can no longer be easily stopped by extensions

I believe we should provide a separate API available to extensions to stop gif animations.
If possible, that API would provide the ability to either stop an individual gif animation or all animations.

Additionally, it should work with other animations such as jxl animations (depending on whether firefox supports them at the time this change is merged).

I don't know if this helps or not but I have found that the add-on, Togglific, is able to stop gif animation but it does not work on webp and maybe others. Perhaps someone could expand on whatever technique Toggliifc is using.
(I am just a user, not a web expert)

Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.