Closed Bug 1638064 Opened 4 years ago Closed 4 years ago

Sort out use of toolkit.cosmeticAnimations.enabled pref in CFRPageActions.jsm

Categories

(Firefox :: Messaging System, task, P1)

78 Branch
task

Tracking

()

RESOLVED FIXED
Firefox 78
Iteration:
78.2 - May 18 - May 31
Tracking Status
firefox77 --- unaffected
firefox78 --- fixed

People

(Reporter: dao, Assigned: emcminn)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

toolkit.cosmeticAnimations.enabled is going away. CFRPageActions.jsm should either obey prefers-reduced-motion or remove the ability to disable animations. I'm not sure how to test this feature and what happens with the animation disabled...

(In reply to Dão Gottwald [::dao] from comment #0)

I'm not sure how to test this feature and what happens with the animation disabled...

Apparently resource://activity-stream/data/content/assets/cfr_pinnedtab_static.png is used then but that doesn't seem very informative. What exactly is the idea here?

Flags: needinfo?(andrei.br92)
Component: New Tab Page → Messaging System

Based on the pref we toggle between cfr_pinnedtab_animated@2x.png and cfr_pinnedtab_static.png (both in browser/components/newtab/data/content/assets).
We can switch it to use prefers-reduced-motion instead. Does the tracking flag for 78 mean the pref is going away in 78?

Flags: needinfo?(andrei.br92)
Assignee: nobody → emcminn
Severity: -- → S3
Iteration: --- → 78.2 - May 18 - May 31
Priority: -- → P1

(In reply to Andrei Oprea [:andreio] from comment #2)

We can switch it to use prefers-reduced-motion instead. Does the tracking flag for 78 mean the pref is going away in 78?

It's basically dead at this point. Only CFRPageActions.jsm and alert.js still read it.

Attachment #9151600 - Attachment description: Bug 1638064 - Removed toolkit.cosmeticAnimations.enabled pref and replaced it with "prefers-reduced-motion" → Bug 1638064 - Removed toolkit.cosmeticAnimations.enabled pref and replaced it with "prefers-reduced-motion" in CFRPageActions
Pushed by emcminn@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/124a0e45acf2 Removed toolkit.cosmeticAnimations.enabled pref and replaced it with "prefers-reduced-motion" in CFRPageActions r=dao
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 78
Depends on: 1677960
Regressions: 1677960
No longer depends on: 1677960
No longer regressions: 1677960
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: