[Pkg-privacy-commits] [xul-ext-monkeysphere] 105/296: adding setStatus calls where necessary; removing any reloads

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:30 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 b8dcf04a7522755a033f41ecac5f70b7ec2d2d8c
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Tue Feb 23 19:22:55 2010 -0500

    adding setStatus calls where necessary; removing any reloads
---
 chrome/content/monkeysphere.js | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index 4f3d34b..48bfd6c 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -358,21 +358,22 @@ var monkeysphere = {
 	  // VALID!
 	  monkeysphere.log("SITE VERIFIED!");
 	  monkeysphere.securityOverride(uri, cert);
-
+          // reload page
+          monkeysphere.log("reloading browser...");
+          browser.webNavigation.reload(nsIWebNavigation.LOAD_FLAGS_NONE);
+          monkeysphere.setStatus(monkeysphere.states.VALID);
         } else {
 
 	  // NOT VALID
 	  monkeysphere.log("site not verified.");
+          monkeysphere.setStatus(monkeysphere.states.NOTVALID);
         }
 
       } else {
 	monkeysphere.log("validation agent did not respond.");
 	//alert(monkeysphere.messages.getString("agentError"));
+        monkeysphere.setStatus(monkeysphere.states.ERROR);
       }
-
-      // reload page
-      monkeysphere.log("reloading browser...");
-      browser.webNavigation.reload(nsIWebNavigation.LOAD_FLAGS_NONE);
     }
   },
 

-- 
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