From a703799580a208beac24c827fcd54b799f46a3d7 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Wed, 7 Oct 2009 11:24:44 +0000 Subject: Finally working normally again after massive refactoring. Disabling single redirects works but needs more GUI work. Added Redirector log file since the Error Console keeps deleting our messages. git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@253 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/log.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 chrome/content/log.html (limited to 'chrome/content/log.html') diff --git a/chrome/content/log.html b/chrome/content/log.html new file mode 100644 index 0000000..64ff726 --- /dev/null +++ b/chrome/content/log.html @@ -0,0 +1,29 @@ + + + Redirector Log Message Listener + <style type="text/css"> + body { font-family:Arial, sans-serif; } + </style> + </head> + <body onunload="unload();" onload="load();"> + <script> + var listener = { + observe : function(msg) { + var prefix = 'REDIRECTOR:'; + if (msg.message.substr(0, prefix.length) == prefix) + { + document.body.innerHTML += msg.message.substr(prefix.length) + '<br>'; + } + } + }; + var consoleService = Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService); + + function load() { + consoleService.registerListener(listener); + } + function unload() { + consoleService.unregisterListener(listener); + } + </script> + </body> +</html> \ No newline at end of file -- cgit v1.2.3-70-g09d2