Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902149 - www-client/firefox{,-bin} set accessibility.typeaheadfind, often overriding user preferences
Summary: www-client/firefox{,-bin} set accessibility.typeaheadfind, often overriding u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-19 14:04 UTC by Thomas Schneider
Modified: 2023-04-11 05:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schneider 2023-03-19 14:04:45 UTC
In /usr/lib64/firefox/browser/defaults/preferences/gentoo-prefs.js (for www-client/firefox, -bin is probably somewhere else), various preferences are set – some are probably sensible to do as a distribution, some are however user preference.  One should think that these rather provide defaults and users can override them, but I find myself having to disable `accessibility.typeaheadfind` every so often (my guess is after (major?) firefox updates).

I tried to find why this is set at all, and after some `git blame` joy, I ended up digging through the gentoo-x86 CVS archive.  Traces I’ve found:
- https://bugs.gentoo.org/64196
- https://gitweb.gentoo.org/archive/repo/gentoo-2.git/commit/?id=9c7b8d7ccd128197e4ccfa03e7582868970b2814
- https://gitweb.gentoo.org/archive/repo/gentoo-2.git/commit/?id=32a8ae6612cddc0c7f239ce4f84361c34f7b255f
- https://gitweb.gentoo.org/archive/repo/gentoo-2.git/commit/?id=fa949411f362e931de08d7bcec00f5f110202a10 (this one actually introduces it in what is now gentoo-prefs.js)

It seems like the typeaheadfind feature used to be an extension in ancient times, and maybe this is why it’s enabled by default in Gentoo?  But any historic reason nonwithstanding, as a user preference irrelevant to distribution packaging, Gentoo should not set this preference.

Of course, it’s probably a bug as well that Firefox forgets that I changed this setting as user.

For now, my workaround is:
# cat /etc/firefox/policies/policies.json
{
  "policies": {
    "Preferences": {
      "accessibility.typeaheadfind": {
        "Value": false,
        "Status": "default"
      }
    }
  }
}
Comment 1 Joonas Niilola gentoo-dev 2023-04-03 07:19:41 UTC
It's probably best to remove it while doing the next major version bumps.
Comment 2 Larry the Git Cow gentoo-dev 2023-04-11 05:14:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8483d1122b4c093c8a8886de70774332c81b626a

commit 8483d1122b4c093c8a8886de70774332c81b626a
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-04-11 05:11:03 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-04-11 05:12:58 +0000

    www-client/firefox: add 112.0
    
     - include dont-crash-on-wayland-log-handler.patch from upstream bug #1826583,
     - remove "accessibility.typeaheadfind" from our default prefs.
    
    Bug: https://bugs.gentoo.org/902149
    Bug: https://bugs.gentoo.org/903710
    Bug: https://bugs.gentoo.org/901353
    Bug: https://bugs.gentoo.org/904072
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest                      |  101 ++
 www-client/firefox/files/gentoo-default-prefs.js |    1 -
 www-client/firefox/firefox-112.0.ebuild          | 1379 ++++++++++++++++++++++
 3 files changed, 1480 insertions(+), 1 deletion(-)
Comment 3 Joonas Niilola gentoo-dev 2023-04-11 05:19:19 UTC
Oh, this is not enabled in Thunderbird. Done then!