[Pkg-mozext-commits] [adblock-plus] 07/22: Issue 549 - Allow users to enforce ABP being loaded completely at Firefox startup, even if delaying it

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:01:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit e05e2b0349865bbe7ec6a8a1b0c1f923e090c929
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri May 23 14:25:52 2014 +0200

    Issue 549 - Allow users to enforce ABP being loaded completely at Firefox startup, even if delaying it
---
 defaults/prefs.js | 1 +
 lib/utils.js      | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/defaults/prefs.js b/defaults/prefs.js
index 9503dce..efcb5e3 100644
--- a/defaults/prefs.js
+++ b/defaults/prefs.js
@@ -35,3 +35,4 @@ pref("extensions.adblockplus.blockableItemsSize", {width: 200, height: 200});
 pref("extensions.adblockplus.notificationurl", "https://notification.adblockplus.org/notification.json");
 pref("extensions.adblockplus.notificationdata", {});
 pref("extensions.adblockplus.subscriptions_antiadblockurl", "https://easylist-downloads.adblockplus.org/antiadblockfilters.txt");
+pref("extensions.adblockplus.please_kill_startup_performance", false);
diff --git a/lib/utils.js b/lib/utils.js
index 03ca20d..27dad78 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -370,6 +370,12 @@ let Utils = exports.Utils =
    */
   yield: function()
   {
+    let {Prefs} = require("prefs");
+    if (Prefs.please_kill_startup_performance)
+    {
+      this.yield = function() {};
+      return;
+    }
     let thread = Services.tm.currentThread;
     while (thread.processNextEvent(false));
   },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list