diff --git a/components/tabs/content/browser-tab.js b/components/tabs/content/browser-tab.js index e170047a9b..0d42e28ad6 100644 --- a/components/tabs/content/browser-tab.js +++ b/components/tabs/content/browser-tab.js @@ -316,20 +316,24 @@ class BrowserRenderedTab extends BrowserCustomizableArea { * Determines how long to animate the tab for on open */ get _tabInAnimateDuration() { - return Services.prefs.getIntPref( - "dot.tabs.in_animation_duration_ms", - 50 - ); + return gDot.prefersReducedMotion + ? 0 + : Services.prefs.getIntPref( + "dot.tabs.in_animation_duration_ms", + 50 + ); } /** * Determines how long to animate the tab for on close */ get _tabOutAnimateDuration() { - return Services.prefs.getIntPref( - "dot.tabs.out_animation_duration_ms", - 30 - ); + return gDot.prefersReducedMotion + ? 0 + : Services.prefs.getIntPref( + "dot.tabs.out_animation_duration_ms", + 30 + ); } get animationProps() {