[hipl-commit] [trunk] Rev 3665: fixed still existing TABs in hipext

  • From: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 17 Feb 2010 16:45:24 +0200

Committer: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx>
Date: Wed Feb 17 15:45:03 2010 +0100
Revision: 3665
Revision-id: rene.hummen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  fixed still existing TABs in hipext

Modified:
  M  hipext/src/chrome.manifest
  M  hipext/src/content/hipext.js

=== modified file 'hipext/src/chrome.manifest'
--- hipext/src/chrome.manifest  2009-01-29 13:59:22 +0000
+++ hipext/src/chrome.manifest  2010-02-17 14:45:03 +0000
@@ -1,4 +1,4 @@
-content        hipext  content/
-locale hipext  en-US   locale/en-US/
-skin   hipext  classic/1.0     skin/
-overlay        chrome://browser/content/browser.xul    
chrome://hipext/content/hipext.xul
+content hipext content/
+locale hipext en-US locale/en-US/
+skin hipext classic/1.0 skin/
+overlay chrome://browser/content/browser.xul chrome://hipext/content/hipext.xul

=== modified file 'hipext/src/content/hipext.js'
--- hipext/src/content/hipext.js        2009-02-12 08:34:55 +0000
+++ hipext/src/content/hipext.js        2010-02-17 14:45:03 +0000
@@ -3,38 +3,38 @@
   onLoad: function() {
     this.Listener = {
       onLocationChange: function(aProgress, aRequest, aURI) {
-       if (aURI.scheme != "chrome" && aURI.scheme != "file")
-         this.parent.hipUsed = this.parent.isHip(aURI.host);
+    if (aURI.scheme != "chrome" && aURI.scheme != "file")
+      this.parent.hipUsed = this.parent.isHip(aURI.host);
       },
       onStateChange: function() {},
       onProgressChange: function() {},
       onStatusChange: function() {},
       onSecurityChange: function(aWebProgress, aRequest, aState, aDownload) {
-       if (this.parent.hipUsed)
-         this.parent.updateHipStatus();
+    if (this.parent.hipUsed)
+      this.parent.updateHipStatus();
       },
       onLinkIconAvailable: function() {}
     };
 
     this.Listener.parent = this;
     window.getBrowser().addProgressListener(this.Listener,
-                Components.interfaces.nsIWebProgress.NOTIFY_STATE_DOCUMENT);
+        Components.interfaces.nsIWebProgress.NOTIFY_STATE_DOCUMENT);
   },
 
   onUnload: function() {
-       window.getBrowser().removeProgressListener(this.Listener);
+    window.getBrowser().removeProgressListener(this.Listener);
   },
 
   isHip: function(host) {
-       /* Resolve address from hostname */
-       var ips = new Array();
-       var dns = Components.classes["@mozilla.org/network/dns-service;1"].
+    /* Resolve address from hostname */
+    var ips = new Array();
+    var dns = Components.classes["@mozilla.org/network/dns-service;1"].
             getService(Components.interfaces.nsIDNSService);
-       var dnsrecord = dns.resolve(host, 0);
-       while (dnsrecord.hasMore()) {
-               var ip = dnsrecord.getNextAddrAsString();
-               ips.push(ip);
-       }
+    var dnsrecord = dns.resolve(host, 0);
+    while (dnsrecord.hasMore()) {
+        var ip = dnsrecord.getNextAddrAsString();
+        ips.push(ip);
+    }
 
         /* Determine whether address is a HIT */
         var iphip = ips.join(',');
@@ -48,7 +48,7 @@
                 var i2 = parseInt(v2, 16) & 0xfff0;
                 if ((i1 == 0x2001) && (i2 == 0x0010)) iship = true;
         }
-       return iship;
+    return iship;
   },
 
   updateHipStatus: function() {

Other related posts:

  • » [hipl-commit] [trunk] Rev 3665: fixed still existing TABs in hipext - Rene Hummen