| Index: lib/utils.js |
| =================================================================== |
| --- a/lib/utils.js |
| +++ b/lib/utils.js |
| @@ -365,16 +365,22 @@ let Utils = exports.Utils = |
| }, |
| /** |
| * Pauses code execution and allows events to be processed. Warning: |
| * other extension code might execute, the extension might even shut down. |
| */ |
| 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)); |
| }, |
| /** |
| * Saves sidebar state before detaching/reattaching |
| */ |
| setParams: function(params) |