Open
Bug 1865010
Opened 2 years ago
Updated 10 months ago
useDocumentFonts BrowserSetting value does not persist across restarts
Categories
(GeckoView :: Extensions, defect, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: gregp, Unassigned)
References
Details
Steps to reproduce:
- In a background script, run:
browser.browserSettings.useDocumentFonts.set({ value: false });
- Restart the browser
- In a background script, run:
let { value } = await browser.browserSettings.useDocumentFonts.get({}); console.log(value);
Expected results:
false
is logged to the console
Actual results:
true
is logged to the console
I believe this is happening because:
- The underlying pref (
browser.display.use_document_fonts
) is controlled by GeckoRuntimeSettings
https://searchfox.org/mozilla-central/rev/3d0b07f5a3c7b8d9955fb8e8acaaf582b1e33bb6/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java#512 - The user values of all prefs controlled by GeckoRuntimeSettings are reset on commit
https://searchfox.org/mozilla-central/rev/3d0b07f5a3c7b8d9955fb8e8acaaf582b1e33bb6/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java#619
Reporter | ||
Updated•2 years ago
|
Component: WebExtensions → Extensions
Product: Fenix → GeckoView
Comment 1•2 years ago
|
||
This may be an issue related to GeckoView overridden values with its own default.
You need to log in
before you can comment on or make changes to this bug.
Description
•