Read Firefox UA compatmode from a pref instead of hard-coded.

In case of a missing pref, a hard-coded value is still used from the ctor.
This commit is contained in:
wolfbeast 2017-08-11 13:30:55 +02:00 committed by Roy Tam
commit 14b6e5e8f2
3 changed files with 25 additions and 7 deletions

View file

@ -23,6 +23,7 @@ pref("keyword.enabled", false);
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
pref("general.useragent.compatMode.gecko", false);
pref("general.useragent.compatMode.firefox", false);
pref("general.useragent.compatMode.version", "52.9");
pref("general.useragent.appVersionIsBuildID", true);
// This pref exists only for testing purposes. In order to disable all