Commit d0760826 authored by Arthur Edelstein's avatar Arthur Edelstein
Browse files

Bug 26100: Use new asynchronous applyFilter

applyFilter changed its signature to include a callback
object:
https://hg.mozilla.org/mozilla-central/rev/77c14093bc69
parent c4a44294
......@@ -43,8 +43,8 @@ mozilla.protocolProxyService = Cc["@mozilla.org/network/protocol-proxy-service;1
// for the given channel, and should return a new Proxy or list of Proxies.
mozilla.registerProxyChannelFilter = function (filterFunction, positionIndex) {
let proxyFilter = {
applyFilter : function (aProxyService, aChannel, aProxy) {
return filterFunction(aChannel, aProxy);
applyFilter : function (aProxyService, aChannel, aProxy, aCallback) {
aCallback.onProxyFilterResult(filterFunction(aChannel, aProxy));
}
};
mozilla.protocolProxyService.registerChannelFilter(proxyFilter, positionIndex);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment