diff options
author | Jesús <heckyel@hyperbola.info> | 2019-12-30 15:55:13 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-12-30 15:55:13 -0500 |
commit | 288df6a7bf8b933e2dc499e38f4915fcf974c14b (patch) | |
tree | 77bba994f260c064d3ee7f76c427ddfaa4f91710 /js/httpsb.js | |
parent | a2c9deaa145b780722e93b3899600f287c8094a4 (diff) | |
download | ematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.tar.lz ematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.tar.xz ematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.zip |
backport
- Flush caches on upgrade
- Properly handle FrameModule's unloading
- Use the new module and remove the old implementation
Diffstat (limited to 'js/httpsb.js')
-rw-r--r-- | js/httpsb.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/js/httpsb.js b/js/httpsb.js index b235f70..824a302 100644 --- a/js/httpsb.js +++ b/js/httpsb.js @@ -28,6 +28,8 @@ /******************************************************************************/ (function() { + Cu.import('chrome://ematrix/content/lib/UriTools.jsm'); + var ηm = ηMatrix; ηm.pMatrix = new ηm.Matrix(); ηm.pMatrix.setSwitch('matrix-off', 'about-scheme', 1); @@ -59,7 +61,7 @@ /******************************************************************************/ ηMatrix.hostnameFromURL = function(url) { - var hn = this.URI.hostnameFromURI(url); + var hn = UriTools.hostnameFromURI(url); return hn === '' ? '*' : hn; }; @@ -68,7 +70,7 @@ /******************************************************************************/ ηMatrix.evaluateURL = function(srcURL, desHostname, type) { - var srcHostname = this.URI.hostnameFromURI(srcURL); + var srcHostname = UriTools.hostnameFromURI(srcURL); return this.tMatrix.evaluateCellZXY(srcHostname, desHostname, type); }; @@ -93,7 +95,7 @@ // done only from within a scope. ηMatrix.autoWhitelistAllTemporarily = function(pageURL) { - var srcHostname = this.URI.hostnameFromURI(pageURL); + var srcHostname = UriTools.hostnameFromURI(pageURL); if ( this.mustBlock(srcHostname, '*', '*') === false ) { return false; } |