[Pkg-privacy-commits] [xul-ext-monkeysphere] 205/296: fix formatting. NO FUNCTIONAL CHANGE AT ALL.
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:40 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 215546a91dcb52e471f2c5d62e8e0295a4b467bb
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Sun Apr 25 14:59:39 2010 -0400
fix formatting. NO FUNCTIONAL CHANGE AT ALL.
---
chrome/content/monkeysphere.js | 227 ++++++++++++++++++++---------------------
1 file changed, 112 insertions(+), 115 deletions(-)
diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index faec863..3269aa2 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -191,144 +191,141 @@ var monkeysphere = (function() {
return {
-////////////////////////////////////////////////////////////
-// INITIALIZATION
-////////////////////////////////////////////////////////////
-
- //////////////////////////////////////////////////////////
- // initialization function
- init: function() {
- ms.log("---- begin initialization ----");
+ ////////////////////////////////////////////////////////
+ // INITIALIZATION
+ ////////////////////////////////////////////////////////
- // get localization messages
- monkeysphere.messages = document.getElementById("message_strings");
+ init: function() {
+ ms.log("---- begin initialization ----");
- // create event listeners
- ms.log("creating listeners...");
- gBrowser.addProgressListener(monkeysphere.progressListener);
- gBrowser.addTabsProgressListener(monkeysphere.tabProgressListener);
+ // get localization messages
+ monkeysphere.messages = document.getElementById("message_strings");
- ms.log("---- initialization complete ----");
- },
+ // create event listeners
+ ms.log("creating listeners...");
+ gBrowser.addProgressListener(monkeysphere.progressListener);
+ gBrowser.addTabsProgressListener(monkeysphere.tabProgressListener);
-////////////////////////////////////////////////////////////
-// LISTENERS
-////////////////////////////////////////////////////////////
-
- // https://developer.mozilla.org/en/nsIWebProgressListener
- progressListener: {
- onLocationChange: function(aWebProgress, aRequest, aLocation) {
- ms.log("++++ PL location change: " + aLocation.prePath);
- updateDisplay();
+ ms.log("---- initialization complete ----");
},
- onProgressChange: function() {},
- onSecurityChange: function() {},
- onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus) {},
- onStatusChange: function(aWebProgress, aRequest, aStatus, aMessage) {}
- },
-
- // https://developer.mozilla.org/en/Listening_to_events_on_all_tabs
- tabProgressListener: {
- onSecurityChange: function(aBrowser, aWebProgress, aRequest, aState) {
- ms.log("++++ tabPL security change: ");
- checkSite(aBrowser, aState);
- updateDisplay();
+ ////////////////////////////////////////////////////////
+ // LISTENERS
+ ////////////////////////////////////////////////////////
+
+ // https://developer.mozilla.org/en/nsIWebProgressListener
+ progressListener: {
+ onLocationChange: function(aWebProgress, aRequest, aLocation) {
+ ms.log("++++ PL location change: " + aLocation.prePath);
+ updateDisplay();
+ },
+
+ onProgressChange: function() {},
+ onSecurityChange: function() {},
+ onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus) {},
+ onStatusChange: function(aWebProgress, aRequest, aStatus, aMessage) {}
},
- onLocationChange: function(aBrowser, aWebProgress, aRequest, aLocation) {
- //ms.log("++++ tabPL location change: " + aLocation.prePath);
- },
- onProgressChange: function(aBrowser, awebProgress, aRequest, curSelfProgress, maxSelfProgress, curTotalProgress, maxTotalProgress) {
- //ms.log("++++ tabPL progress change: " + curSelfProgress);
- },
- onStateChange: function(aBrowser, aWebProgress, aRequest, aStateFlags, aStatus) {
- ms.log("++++ tabPL state change: " + aRequest);
- updateDisplay();
+ // https://developer.mozilla.org/en/Listening_to_events_on_all_tabs
+ tabProgressListener: {
+ onSecurityChange: function(aBrowser, aWebProgress, aRequest, aState) {
+ ms.log("++++ tabPL security change: ");
+ checkSite(aBrowser, aState);
+ updateDisplay();
+ },
+
+ onLocationChange: function(aBrowser, aWebProgress, aRequest, aLocation) {
+ //ms.log("++++ tabPL location change: " + aLocation.prePath);
+ },
+ onProgressChange: function(aBrowser, awebProgress, aRequest, curSelfProgress, maxSelfProgress, curTotalProgress, maxTotalProgress) {
+ //ms.log("++++ tabPL progress change: " + curSelfProgress);
+ },
+ onStateChange: function(aBrowser, aWebProgress, aRequest, aStateFlags, aStatus) {
+ ms.log("++++ tabPL state change: " + aRequest);
+ updateDisplay();
+ },
+ onStatusChange: function(aBrowser, aWebProgress, aRequest, aStatus, aMessage) {
+ //ms.log("++++ tabPL status change: " + aRequest);
+ }
},
- onStatusChange: function(aBrowser, aWebProgress, aRequest, aStatus, aMessage) {
- //ms.log("++++ tabPL status change: " + aRequest);
- }
- },
- //////////////////////////////////////////////////////////
- // when the XMLHttpRequest to the agent state changes
- onAgentStateChange: function(client, browser, cert) {
- ms.log("agent query state change: " + client.readyState);
- ms.log(" status: " + client.status);
- ms.log(" response: " + client.responseText);
+ ////////////////////////////////////////////////////////
+ // when the XMLHttpRequest to the agent state changes
+ onAgentStateChange: function(client, browser, cert) {
+ ms.log("agent query state change: " + client.readyState);
+ ms.log(" status: " + client.status);
+ ms.log(" response: " + client.responseText);
- if (client.readyState == 4) {
- if (client.status == 200) {
+ if (client.readyState == 4) {
+ if (client.status == 200) {
- var response = JSON.parse(client.responseText);
+ var response = JSON.parse(client.responseText);
- if (response.valid) {
+ if (response.valid) {
- // VALID!
- ms.log("SITE VERIFIED!");
- ms.overrides.set(client.apd, response);
- ms.setStatus(browser, 'VALID', response.message);
+ // VALID!
+ ms.log("SITE VERIFIED!");
+ ms.overrides.set(client.apd, response);
+ ms.setStatus(browser, 'VALID', response.message);
- // reload page
- ms.log("reloading browser...");
- browser.webNavigation.reload(nsIWebNavigation.LOAD_FLAGS_NONE);
+ // reload page
+ ms.log("reloading browser...");
+ browser.webNavigation.reload(nsIWebNavigation.LOAD_FLAGS_NONE);
- } else {
+ } else {
- // NOT VALID
- ms.log("site not verified.");
- ms.setStatus(browser, 'NOTVALID', response.message);
+ // NOT VALID
+ ms.log("site not verified.");
+ ms.setStatus(browser, 'NOTVALID', response.message);
+ }
+ } else {
+ ms.log("validation agent did not respond.");
+ //alert(monkeysphere.messages.getString("agentError"));
+ ms.setStatus(browser, 'ERROR', monkeysphere.messages.getString('noResponseFromAgent'));
}
- } else {
- ms.log("validation agent did not respond.");
- //alert(monkeysphere.messages.getString("agentError"));
- ms.setStatus(browser, 'ERROR', monkeysphere.messages.getString('noResponseFromAgent'));
- }
- // update the current display, so that if we're looking at the
- // browser being processed, the result will be immediately displayed
- updateDisplay();
- }
- },
-
-////////////////////////////////////////////////////////////
-// CONTEXT MENU FUNCTIONS
-////////////////////////////////////////////////////////////
-
- contextMenuFunctions: {
-
- clearSite: function() {
- var browser = gBrowser.selectedBrowser;
- var uri = browser.currentURI;
- try {
- var cert = browser.securityUI.SSLStatus.serverCert;
- } catch(e) {
- ms.log("no valid cert found?");
- return;
- }
- var apd = ms.createAgentPostData(uri, cert);
- ms.overrides.clear(apd);
- // FIXME: why does the override seem to persist after a clear?
- if(!ms.overrides.certStatus(apd)) {
- alert('Monkeysphere: site clear error. Is override cert cleared?');
+ // update the current display, so that if we're looking at the
+ // browser being processed, the result will be immediately displayed
+ updateDisplay();
}
- var newstate = browser.monkeysphere.state;
- var newmessage = browser.monkeysphere.message + ' [NO LONGER CACHED]';
- ms.setStatus(browser, newstate, newmessage);
- updateDisplay();
},
- certs: function() {
- openDialog("chrome://pippki/content/certManager.xul", "Certificate Manager");
- },
+ ////////////////////////////////////////////////////////
+ // CONTEXT MENU FUNCTIONS
+ ////////////////////////////////////////////////////////
+
+ contextMenuFunctions: {
- help: function() {
- gBrowser.loadOneTab("chrome://monkeysphere/locale/help.html",
- null, null, null, false);
+ clearSite: function() {
+ var browser = gBrowser.selectedBrowser;
+ var uri = browser.currentURI;
+ try {
+ var cert = browser.securityUI.SSLStatus.serverCert;
+ } catch(e) {
+ ms.log("no valid cert found?");
+ return;
+ }
+ var apd = ms.createAgentPostData(uri, cert);
+ ms.overrides.clear(apd);
+ // FIXME: why does the override seem to persist after a clear?
+ if(!ms.overrides.certStatus(apd)) {
+ alert('Monkeysphere: site clear error. Is override cert cleared?');
+ }
+ var newstate = browser.monkeysphere.state;
+ var newmessage = browser.monkeysphere.message + ' [NO LONGER CACHED]';
+ ms.setStatus(browser, newstate, newmessage);
+ updateDisplay();
+ },
+
+ certs: function() {
+ openDialog("chrome://pippki/content/certManager.xul", "Certificate Manager");
+ },
+
+ help: function() {
+ gBrowser.loadOneTab("chrome://monkeysphere/locale/help.html",
+ null, null, null, false);
+ }
}
- }
-};
+ };
})();
-
--
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