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:
Mike Conley 2016-01-18 12:44:37 -05:00
Родитель e1a362aa26
Коммит ba17921111
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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