[tbb-commits] [torbutton/master] Bug 26100: Use new asynchronous applyFilter

gk at torproject.org gk at torproject.org
Fri May 25 06:13:17 UTC 2018


commit d07608265a3720f6f0a35f1e1bfa3c4d08706861
Author: Arthur Edelstein <arthuredelstein at gmail.com>
Date:   Wed May 16 13:48:39 2018 -0700

    Bug 26100: Use new asynchronous applyFilter
    
    applyFilter changed its signature to include a callback
    object:
    https://hg.mozilla.org/mozilla-central/rev/77c14093bc69
---
 src/components/domain-isolator.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/domain-isolator.js b/src/components/domain-isolator.js
index a698439..fc28703 100644
--- a/src/components/domain-isolator.js
+++ b/src/components/domain-isolator.js
@@ -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);





More information about the tbb-commits mailing list