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
parent c4a44294
......@@ -43,8 +43,8 @@ mozilla.protocolProxyService = Cc[";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