Closed Bug 1375040 Opened 7 years ago Closed 7 years ago

Use defineLazyPreferenceGetter for toolkit.cosmeticAnimations.enabled in tabbrowser.xml since we check the pref in multiple places

Categories

(Firefox :: Tabbed Browser, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 56
Iteration:
56.1 - Jun 26
Tracking Status
firefox56 --- fixed

People

(Reporter: jaws, Assigned: jaws)

References

Details

(Whiteboard: [reserve-photon-animation])

Attachments

(1 file)

From a review comment in bug 1366060, > ::: browser/base/content/tabbrowser.xml:7042 > (Diff revision 1) > > let dropIndex = "animDropIndex" in draggedTab._dragData && > > draggedTab._dragData.animDropIndex; > > if (dropIndex && dropIndex > draggedTab._tPos) > > dropIndex--; > > > > - if (oldTranslateX && oldTranslateX != newTranslateX) { > > + let animate = Services.prefs.getBoolPref("toolkit.cosmeticAnimations.enabled"); > > We check this pref in 2 other places already. Maybe we should just have a > defineLazyPreferenceGetter() on the tabbrowser for this?
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Comment on attachment 8880029 [details] Bug 1375040 - Use defineLazyPreferenceGetter for toolkit.cosmeticAnimations.enabled in tabbrowser.xml since we check the pref in multiple places. https://reviewboard.mozilla.org/r/151368/#review156298
Attachment #8880029 - Flags: review?(gijskruitbosch+bugs) → review+
Pushed by jwein@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/17a1967006d4 Use defineLazyPreferenceGetter for toolkit.cosmeticAnimations.enabled in tabbrowser.xml since we check the pref in multiple places. r=Gijs
Iteration: --- → 56.1 - Jun 26
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [reserve-photon-animation]
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Flags: qe-verify? → qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: