зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1233497 - Temporarily allow unsafe CPOWs in Promise-backend.js and Task.jsm. r=billm
--HG-- extra : commitid : Jzchcq5SSGv extra : rebase_source : a8f2cbfe5a77fc5d80eb04dd806841355479a953
This commit is contained in:
Родитель
e1a362aa26
Коммит
ba17921111
|
@ -56,6 +56,10 @@ if (Cu) {
|
|||
XPCOMUtils.defineLazyServiceGetter(this, "FinalizationWitnessService",
|
||||
"@mozilla.org/toolkit/finalizationwitness;1",
|
||||
"nsIFinalizationWitnessService");
|
||||
|
||||
// For now, we're worried about add-ons using Promises with CPOWs, so we'll
|
||||
// permit them in this scope, but this support will go away soon.
|
||||
Cu.permitCPOWsInScope(this);
|
||||
}
|
||||
|
||||
const STATUS_PENDING = 0;
|
||||
|
|
|
@ -91,6 +91,10 @@ const Ci = Components.interfaces;
|
|||
const Cu = Components.utils;
|
||||
const Cr = Components.results;
|
||||
|
||||
// For now, we're worried about add-ons using Tasks with CPOWs, so we'll
|
||||
// permit them in this scope, but this support will go away soon.
|
||||
Cu.permitCPOWsInScope(this);
|
||||
|
||||
Cu.import("resource://gre/modules/Promise.jsm");
|
||||
|
||||
// The following error types are considered programmer errors, which should be
|
||||
|
|
Загрузка…
Ссылка в новой задаче