[Pkg-privacy-commits] [xul-ext-monkeysphere] 139/296: small cleanup

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.

commit b95939244ee935ee2d6c62b19f42ef0faf3d6998
Author: Jameson Rollins <jrollins at finestructure.net>
Date:   Sun Mar 7 21:05:16 2010 -0500

    small cleanup
---
 chrome/content/monkeysphere.js | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index 4e4bd13..d66e071 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -186,10 +186,10 @@ var monkeysphere = {
   //////////////////////////////////////////////////////////
   // check site monkeysphere status
   checkSite: function(browser, state) {
-    var uri = browser.currentURI;
-
     monkeysphere.log("check site:");
 
+    var uri = browser.currentURI;
+
     // if uri not relevant, return
     if(!monkeysphere.isRelevantURI(uri)) {
       monkeysphere.setStatus(browser, 'NEUTRAL');
@@ -258,12 +258,12 @@ var monkeysphere = {
   //////////////////////////////////////////////////////////
   // update the display for the currently visible browser
   updateDisplay: function() {
+    monkeysphere.log("update display:");
+
     var browser = gBrowser.selectedBrowser;
     var panel = document.getElementById("monkeysphere-status");
     var icon = document.getElementById("monkeysphere-status-image");
 
-    monkeysphere.log("update display:");
-
     // the following happens when called from a dialog
     if(!panel || !icon) {
       monkeysphere.log("  panel/icon not available; falling back to window.opener");
@@ -388,8 +388,6 @@ var monkeysphere = {
   //////////////////////////////////////////////////////////
   // when the XMLHttpRequest to the agent state changes
   onAgentStateChange: function(client, browser, cert) {
-    var uri = browser.currentURI;
-
     monkeysphere.log("agent query state change: " + client.readyState);
     monkeysphere.log("  status: " + client.status);
     monkeysphere.log("  response: " + client.responseText);
@@ -405,7 +403,7 @@ var monkeysphere = {
 
           // VALID!
           monkeysphere.log("SITE VERIFIED!");
-          monkeysphere.securityOverride(uri, cert);
+          monkeysphere.securityOverride(browser.currentURI, cert);
           monkeysphere.setStatus(browser, 'VALID', response.message);
 
           // reload page

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git



More information about the Pkg-privacy-commits mailing list