diff options
author | Martin Stransky <stransky@redhat.com> | 2017-03-31 09:50:53 +0200 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2017-03-31 09:50:53 +0200 |
commit | 20fe8926e7a83c5d751cf873a47fdb9c8c381c39 (patch) | |
tree | dedd1a99d726fbffd23b36cd02892c3e4fbe3725 /mozilla-1348576.patch | |
parent | Added deployment-checker@mozilla.org.xpi to the file list (diff) | |
download | librewolf-fedora-ff-20fe8926e7a83c5d751cf873a47fdb9c8c381c39.tar.gz librewolf-fedora-ff-20fe8926e7a83c5d751cf873a47fdb9c8c381c39.tar.bz2 librewolf-fedora-ff-20fe8926e7a83c5d751cf873a47fdb9c8c381c39.zip |
Added patch for mozbz#1348576 - enable e10s by default, Added patch for mozbz#1158076 - enable dark theme by pref
Diffstat (limited to 'mozilla-1348576.patch')
-rw-r--r-- | mozilla-1348576.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/mozilla-1348576.patch b/mozilla-1348576.patch new file mode 100644 index 0000000..1b13847 --- /dev/null +++ b/mozilla-1348576.patch @@ -0,0 +1,46 @@ +diff -up firefox-52.0.2/browser/extensions/e10srollout/bootstrap.js.1348576 firefox-52.0.2/browser/extensions/e10srollout/bootstrap.js +--- firefox-52.0.2/browser/extensions/e10srollout/bootstrap.js.1348576 2017-03-31 09:36:20.070787199 +0200 ++++ firefox-52.0.2/browser/extensions/e10srollout/bootstrap.js 2017-03-31 09:38:09.211308920 +0200 +@@ -9,6 +9,7 @@ const {classes: Cc, interfaces: Ci, util + Cu.import("resource://gre/modules/Preferences.jsm"); + Cu.import("resource://gre/modules/Services.jsm"); + Cu.import("resource://gre/modules/UpdateUtils.jsm"); ++Cu.import("resource://gre/modules/AppConstants.jsm"); + + // The amount of people to be part of e10s + const TEST_THRESHOLD = { +@@ -23,6 +24,23 @@ const ADDON_ROLLOUT_POLICY = { + "esr" : "esrA", // WebExtensions and Addons with mpc=true + }; + ++if (AppConstants.RELEASE_OR_BETA) { ++ // Bug 1348576 - e10s is never enabled for non-official release builds ++ // This is hacky, but the problem it solves is the following: ++ // the e10s rollout is controlled by the channel name, which ++ // is the only way to distinguish between Beta and Release. ++ // However, non-official release builds (like the ones done by distros ++ // to ship Firefox on their package managers) do not set a value ++ // for the release channel, which gets them to the default value ++ // of.. (drumroll) "default". ++ // But we can't just always configure the same settings for the ++ // "default" channel because that's also the name that a locally ++ // built Firefox gets, and e10s is managed in a different way ++ // there (directly by prefs, on Nightly and Aurora). ++ TEST_THRESHOLD.default = TEST_THRESHOLD.release; ++ ADDON_ROLLOUT_POLICY.default = ADDON_ROLLOUT_POLICY.release; ++} ++ + const PREF_COHORT_SAMPLE = "e10s.rollout.cohortSample"; + const PREF_COHORT_NAME = "e10s.rollout.cohort"; + const PREF_E10S_OPTED_IN = "browser.tabs.remote.autostart"; +diff -up firefox-52.0.2/browser/extensions/e10srollout/install.rdf.in.1348576 firefox-52.0.2/browser/extensions/e10srollout/install.rdf.in +--- firefox-52.0.2/browser/extensions/e10srollout/install.rdf.in.1348576 2017-03-31 09:36:20.070787199 +0200 ++++ firefox-52.0.2/browser/extensions/e10srollout/install.rdf.in 2017-03-31 09:38:45.579149534 +0200 +@@ -11,6 +11,7 @@ + <Description about="urn:mozilla:install-manifest"> + <em:id>e10srollout@mozilla.org</em:id> + <em:version>1.9</em:version> ++ <em:version>1.9.1</em:version> + <em:type>2</em:type> + <em:bootstrap>true</em:bootstrap> + <em:multiprocessCompatible>true</em:multiprocessCompatible> |