[Pkg-privacy-commits] [xul-ext-monkeysphere] 110/296: making silly debugging attempts
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 edc9ff1bb787e32f56193245b58ed66bbd0fbdbc
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date: Mon Mar 1 00:22:21 2010 -0500
making silly debugging attempts
---
chrome/content/monkeysphere.js | 32 +++++++++++++++++++++++++-------
1 file changed, 25 insertions(+), 7 deletions(-)
diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index ca85f39..b8993e8 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -114,6 +114,7 @@ var monkeysphere = {
progressListener: {
onLocationChange: function(aWebProgress, aRequest, aLocation) {
monkeysphere.log("++++ location change: " + aLocation.prePath);
+ monkeysphere.logBrowserInfo(gBrowser);
},
onProgressChange: function() {},
@@ -127,22 +128,35 @@ var monkeysphere = {
onSecurityChange: function(aBrowser, aWebProgress, aRequest, aState) {
monkeysphere.log("++++ tabPL security change: ");
monkeysphere.checkSite(aBrowser, aState);
+ monkeysphere.logBrowserInfo(aBrowser);
},
onLocationChange: function(aBrowser, aWebProgress, aRequest, aLocation) {
monkeysphere.log("++++ tabPL location change: " + aLocation.prePath);
+ monkeysphere.logBrowserInfo(aBrowser);
},
- onProgressChange: function() {
- monkeysphere.log("++++ tabPL progress change: " + aLocation.prePath);
+ onProgressChange: function(aBrowser, awebProgress, aRequest, curSelfProgress, maxSelfProgress, curTotalProgress, maxTotalProgress) {
+ monkeysphere.log("++++ tabPL progress change: " + curSelfProgress);
+ monkeysphere.logBrowserInfo(aBrowser);
},
- onStateChange: function() {
- monkeysphere.log("++++ tabPL status change: " + aLocation.prePath);
+ onStateChange: function(aBrowser, aWebProgress, aRequest, aStateFlags, aStatus) {
+ monkeysphere.log("++++ tabPL status change: " + aRequest);
+ monkeysphere.logBrowserInfo(aBrowser);
},
- onStatusChange: function() {
- monkeysphere.log("++++ tabPL status change: " + aLocation.prePath);
+ onStatusChange: function(aBrowser, aWebProgress, aRequest, aStatus, aMessage) {
+ monkeysphere.log("++++ tabPL status change: " + aRequest);
+ monkeysphere.logBrowserInfo(aBrowser);
}
},
+ logBrowserInfo: function(browser) {
+ if (typeof browser.monkeysphere === 'undefined') {
+ monkeysphere.log('--> nothing yet');
+ } else {
+ monkeysphere.log('--> ' + browser.monkeysphere.message);
+ }
+ },
+
////////////////////////////////////////////////////////////
// SITE URI CHECK FUNCTION
////////////////////////////////////////////////////////////
@@ -329,6 +343,10 @@ var monkeysphere = {
client.setRequestHeader("Content-Length", query.length);
client.setRequestHeader("Connection", "close");
client.setRequestHeader("Accept", "application/json");
+
+ browser.monkeysphere = {
+ message: 'foo bar'
+ };
// setup the state change function
client.onreadystatechange = function() {
@@ -370,7 +388,7 @@ var monkeysphere = {
monkeysphere.log("site not verified.");
monkeysphere.setStatus(monkeysphere.states.NOTVALID);
}
-
+ browser.monkeysphere.message = response.message;
} else {
monkeysphere.log("validation agent did not respond.");
//alert(monkeysphere.messages.getString("agentError"));
--
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