diff options
author | Jan Horak <jhorak@redhat.com> | 2016-10-03 11:15:55 +0200 |
---|---|---|
committer | Jan Horak <jhorak@redhat.com> | 2016-10-03 11:15:55 +0200 |
commit | 111fd75c5873a1b6280f16e44551dc89161a03e7 (patch) | |
tree | 45a37efeecc745791b52380a6dc9b28e30e03acb /mozilla-1005640-accept-lang.patch | |
parent | Enabled rust where possible (diff) | |
download | librewolf-fedora-ff-111fd75c5873a1b6280f16e44551dc89161a03e7.tar.gz librewolf-fedora-ff-111fd75c5873a1b6280f16e44551dc89161a03e7.tar.bz2 librewolf-fedora-ff-111fd75c5873a1b6280f16e44551dc89161a03e7.zip |
Fixing accept-lang problems when non-english locale, disable rust on i686
Diffstat (limited to 'mozilla-1005640-accept-lang.patch')
-rw-r--r-- | mozilla-1005640-accept-lang.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mozilla-1005640-accept-lang.patch b/mozilla-1005640-accept-lang.patch new file mode 100644 index 0000000..6b93928 --- /dev/null +++ b/mozilla-1005640-accept-lang.patch @@ -0,0 +1,30 @@ +diff -up firefox-48.0.1/toolkit/mozapps/extensions/internal/XPIProvider.jsm.mydebug firefox-48.0.1/toolkit/mozapps/extensions/internal/XPIProvider.jsm +--- firefox-48.0.1/toolkit/mozapps/extensions/internal/XPIProvider.jsm.mydebug 2016-08-15 23:35:40.000000000 +0200 ++++ firefox-48.0.1/toolkit/mozapps/extensions/internal/XPIProvider.jsm 2016-09-21 16:08:04.441220821 +0200 +@@ -2724,6 +2724,11 @@ this.XPIProvider = { + this.addAddonsToCrashReporter(); + } + ++ // Save locale settings to compare it later to check whenever some addon ++ // changed it. ++ var previousLocale = Cc["@mozilla.org/chrome/chrome-registry;1"] ++ .getService(Ci.nsIXULChromeRegistry).getSelectedLocale("global"); ++ + try { + AddonManagerPrivate.recordTimestamp("XPI_bootstrap_addons_begin"); + for (let id in this.bootstrappedAddons) { +@@ -2751,6 +2756,14 @@ this.XPIProvider = { + AddonManagerPrivate.recordException("XPI-BOOTSTRAP", "startup failed", e); + } + ++ var currentLocale = Cc["@mozilla.org/chrome/chrome-registry;1"] ++ .getService(Ci.nsIXULChromeRegistry).getSelectedLocale("global"); ++ if (currentLocale != previousLocale) { ++ // We have to flush string cache if the locale was changed during loading ++ // of addons ++ Services.obs.notifyObservers(null, "chrome-flush-caches", null); ++ } ++ + // Let these shutdown a little earlier when they still have access to most + // of XPCOM + Services.obs.addObserver({ |