mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1223585 - [webext] Add some ignoreEvent calls (r=kmag)
This commit is contained in:
parent
2639bfa14e
commit
7d3dcc0927
@ -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"),
|
||||
},
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user