Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/utils.js

Issue 29408710: Issue 5050 - Make legacy extension use WebExtensions I/O (Closed) Base URL: https://hg.adblockplus.org/adblockplus
Patch Set: Created April 10, 2017, 11:23 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/utils.js
===================================================================
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -321,28 +321,20 @@ let Utils = exports.Utils =
}
}
}
}
return selectedItem;
},
/**
- * Pauses code execution and allows events to be processed. Warning:
- * other extension code might execute, the extension might even shut down.
+ * DEPRECATED, do not use!
*/
yield: function()
{
- let {Prefs} = require("prefs");
- if (Prefs.please_kill_startup_performance)
- {
- this.yield = function() {};
- return;
- }
- return new Promise((resolve, reject) => Utils.runAsync(resolve));
},
/**
* Saves sidebar state before detaching/reattaching
*/
setParams: function(params)
{
sidebarParams = params;

Powered by Google App Engine
This is Rietveld