[Pkg-privacy-commits] [xul-ext-monkeysphere] 99/296: add status function to clear site status and override

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:29 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 f563832e78d1eedbeeaffc3e6af938236d099620
Author: Jameson Rollins <jrollins at finestructure.net>
Date:   Sat Feb 20 11:53:15 2010 -0500

    add status function to clear site status and override
---
 TODO                            | 2 --
 chrome/content/monkeysphere.js  | 6 ++++++
 chrome/content/monkeysphere.xul | 4 ++--
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/TODO b/TODO
index a77975e..7d87de7 100644
--- a/TODO
+++ b/TODO
@@ -3,6 +3,4 @@
 - give "monkeysphere" info in:
   - favicon
   - cert validity in certificate view dialog for site
-- status menu item clear temporary cert override for site
-- status menu item to view site cert
 - fix documentation
diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index b0f22be..f7446cc 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -360,6 +360,7 @@ var monkeysphere = {
 
     clear: function(uri) {
       var uid = monkeysphere.uid(uri);
+      monkeysphere.log("clear cache for " + uid);
       if(monkeysphere.cache.array[uid])
 	monkeysphere.cache.array[uid] = {};
       return;
@@ -639,6 +640,11 @@ var monkeysphere = {
   },
 
   contextmenufunctions: {
+    clearSite: function() {
+      var uri = gBrowser.currentURI;
+      monkeysphere.clearOverride(uri);
+      monkeysphere.cache.clear(uri);
+    },
     certs: function() {
       openDialog("chrome://pippki/content/certManager.xul", "Certificate Manager");
     },
diff --git a/chrome/content/monkeysphere.xul b/chrome/content/monkeysphere.xul
index ca99c05..17b135f 100644
--- a/chrome/content/monkeysphere.xul
+++ b/chrome/content/monkeysphere.xul
@@ -49,8 +49,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
     <popupset>
       <popup id="monkeysphere-contextmenu" position="after_start">
-	<menuitem label="View Certificate Store"
-		  oncommand="monkeysphere.contextmenufunctions.certs()" />
+	<menuitem label="Clear site override"
+		  oncommand="monkeysphere.contextmenufunctions.clearSite()" />
 	<menuitem label="Help"
 		  oncommand="monkeysphere.contextmenufunctions.help()" />
       </popup>

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