Bug 1223585 - [webext] Add some ignoreEvent calls (r=kmag)

This commit is contained in:
Bill McCloskey 2015-11-10 14:14:06 -08:00
parent 2639bfa14e
commit 7d3dcc0927

View File

@ -11,6 +11,7 @@ Cu.import("resource://gre/modules/ExtensionUtils.jsm");
var {
SingletonEventManager,
runSafeSync,
ignoreEvent,
} = ExtensionUtils;
// EventManager-like class specifically for WebRequest. Inherits from
@ -126,6 +127,10 @@ extensions.registerPrivilegedAPI("webRequest", (extension, context) => {
handlerBehaviorChanged: function() {
// TODO: Flush all caches.
},
// TODO
onBeforeRedirect: ignoreEvent(context, "webRequest.onBeforeRedirect"),
onErrorOccurred: ignoreEvent(context, "webRequest.onErrorOccurred"),
},
};
});