[Firefox] Fetch browser preferences/options together with the viewer preferences (bug 1862192)

Currently we *synchronously* fetch a number of browser preferences/options, from the platform code, during the viewer respectively PDF document initialization paths.
This seems unnecessary, and we can re-factor the code to instead include the relevant data when fetching the regular viewer preferences.
This commit is contained in:
Jonas Jenwald 2023-10-31 11:39:04 +01:00
parent 50c0fccda6
commit eebc230cf1
7 changed files with 109 additions and 81 deletions

View file

@ -352,7 +352,7 @@ class ChromePreferences extends BasePreferences {
defaultPrefs = this.defaults;
}
storageArea.get(defaultPrefs, function (readPrefs) {
resolve(readPrefs);
resolve({ prefs: readPrefs });
});
};