From fdf9588b7b1ed58d71254d8ee1a1c8b414728be5 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Wed, 9 Sep 2026 02:13:38 +0200 Subject: [PATCH] gh-15026: Improve scrolling performance (gh-15306) --- prefs/README.md | 2 +- prefs/fastfox/smoothscroll.yaml | 49 ----------------------- src/zen/common/sys/ZenUIMigration.sys.mjs | 14 ++++++- 3 files changed, 14 insertions(+), 51 deletions(-) delete mode 100644 prefs/fastfox/smoothscroll.yaml diff --git a/prefs/README.md b/prefs/README.md index 6d1ef9d47..a03f7aaf5 100644 --- a/prefs/README.md +++ b/prefs/README.md @@ -4,4 +4,4 @@ This directory contains configuration files for Zen. They are divided by folder - `firefox/`: Preferences to override Firefox defaults. - `zen/`: Preferences to configure Zen-specific features. -- `privatefox/` & `fastfox/`: _Some_ of the preferences got extracted from [Betterfox](https://github.com/yokoffing/Betterfox). +- `privatefox/`: _Some_ of the preferences got extracted from [Betterfox](https://github.com/yokoffing/Betterfox). diff --git a/prefs/fastfox/smoothscroll.yaml b/prefs/fastfox/smoothscroll.yaml deleted file mode 100644 index 943c097a4..000000000 --- a/prefs/fastfox/smoothscroll.yaml +++ /dev/null @@ -1,49 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Smooth scrolling and mousewheel tuning preferences - -- name: general.smoothScroll.msdPhysics.enabled - condition: "!defined(XP_MACOSX)" - value: true - -- name: general.smoothScroll.currentVelocityWeighting - condition: "!defined(XP_MACOSX)" - value: "0.15" - -- name: general.smoothScroll.stopDecelerationWeighting - condition: "!defined(XP_MACOSX)" - value: "0.6" - -- name: mousewheel.min_line_scroll_amount - condition: "!defined(XP_MACOSX)" - value: 10 - -- name: general.smoothScroll.mouseWheel.durationMinMS - condition: "!defined(XP_MACOSX)" - value: 80 - -- name: general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS - condition: "!defined(XP_MACOSX)" - value: 12 - -- name: general.smoothScroll.msdPhysics.motionBeginSpringConstant - condition: "!defined(XP_MACOSX)" - value: 600 - -- name: general.smoothScroll.msdPhysics.regularSpringConstant - condition: "!defined(XP_MACOSX)" - value: 650 - -- name: general.smoothScroll.msdPhysics.slowdownMinDeltaMS - condition: "!defined(XP_MACOSX)" - value: 25 - -- name: general.smoothScroll.msdPhysics.slowdownSpringConstant - condition: "!defined(XP_MACOSX)" - value: 250 - -- name: mousewheel.default.delta_multiplier_y - condition: "!defined(XP_MACOSX)" - value: 200 diff --git a/src/zen/common/sys/ZenUIMigration.sys.mjs b/src/zen/common/sys/ZenUIMigration.sys.mjs index fd6bbe4f0..39ac96d47 100644 --- a/src/zen/common/sys/ZenUIMigration.sys.mjs +++ b/src/zen/common/sys/ZenUIMigration.sys.mjs @@ -12,7 +12,7 @@ ChromeUtils.defineESModuleGetters(lazy, { class nsZenUIMigration { PREF_NAME = "zen.ui.migration.version"; - MIGRATION_VERSION = 7; + MIGRATION_VERSION = 8; init(isNewProfile) { if (!isNewProfile) { @@ -164,6 +164,18 @@ class nsZenUIMigration { Services.prefs.setBoolPref("zen.widget.macos.window-vibrancy", false); } } + + _migrateV8() { + // A version mismatch in the downloadable gfx blocklist wrongly blocked + // video overlays for every Windows user. The status pref persists in the + // profile and short-circuits the blocklist evaluation, so clear it (and + // its failure id) and restart, since gfx is already initialized by now. + if (Services.prefs.prefHasUserValue("gfx.blacklist.video-overlay")) { + Services.prefs.clearUserPref("gfx.blacklist.video-overlay"); + Services.prefs.clearUserPref("gfx.blacklist.video-overlay.failureid"); + this.shouldRestart = true; + } + } } export var gZenUIMigration = new nsZenUIMigration();