- chrome.manifest
- content httplogout chrome/content/
- overlay chrome://browser/content/browser.xul chrome://httplogout/content/menu.xul
- install.rdf
- <?xml version="1.0"?><RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"><Description about="urn:mozilla:install-manifest"><em:id>notapplicable@addons.mozilla.org</em:id><em:name>HTTP Logout</em:name><em:version>1.2-modified</em:version><em:type>2</em:type><em:description>Log out from all HTTP Authenticated Sessions</em:description><em:creator>John DiMarco</em:creator><em:homepageURL>http://www.cs.toronto.edu/~jdd/httplogout</em:homepageURL><em:aboutURL>chrome://httplogout/content/about.xul</em:aboutURL><em:targetApplication><Description><em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id><em:minVersion>0</em:minVersion><em:maxVersion>100</em:maxVersion></Description></em:targetApplication></Description></RDF>
- chrome\content\about.xul
- <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="chrome://global/skin/" type="text/css"?><window class="dialog" title="HTTP Logout" orient="vertical" autostretch="always" onload="sizeToContent()" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"><vbox><text value="HTTP Logout v1.2-modified" class="url" onclick="window.open('http://www.cs.toronto.edu/~jdd/httplogout'); window.close();"/><text value="Author: John DiMarco" class="url" onclick="window.open('http://www.cs.toronto.edu/~jdd/'); window.close();"/></vbox><hbox><button label="Close" oncommand="window.close();"/></hbox></window>
- chrome\content\contents.rdf
- <?xml version="1.0"?><RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"><RDF:Description RDF:about="urn:mozilla:package:httplogout" chrome:displayName="HTTP Logout 1.2-modified" chrome:author="John DiMarco" chrome:authorURL="mailto:httplogout@cs.toronto.edu" chrome:name="httplogout" chrome:extension="true" chrome:description="Logout from HTTP Authenticated Sessions"></RDF:Description><RDF:Seq RDF:about="urn:mozilla:package:root"><RDF:li RDF:resource="urn:mozilla:package:httplogout"/></RDF:Seq><RDF:Seq RDF:about="urn:mozilla:overlays"><RDF:li RDF:resource="chrome://browser/content/browser.xul"/><RDF:li RDF:resource="chrome://navigator/content/navigator.xul"/></RDF:Seq><RDF:Seq RDF:about="chrome://browser/content/browser.xul"><RDF:li>chrome://content/menu.xul</RDF:li></RDF:Seq><RDF:Seq about="chrome://navigator/content/navigator.xul"><RDF:li>chrome://content/menu.xul</RDF:li></RDF:Seq></RDF:RDF>
- chrome\content\functions.js
- if ("undefined" == typeof(HTTPlogout)) { var HTTPlogout = {}; };
- HTTPlogout.ClearAuthSessions = { clearall : function(e) { var auth = Components.classes["@mozilla.org/network/http-auth-manager;1"].getService(Components.interfaces.nsIHttpAuthManager); auth.clearAll(); } };
- var event = { notify: function(timer) { HTTPlogout.ClearAuthSessions.clearall(event); } }
- var timer = Components.classes["@mozilla.org/timer;1"].createInstance(Components.interfaces.nsITimer);
- timer.initWithCallback(event,1000, Components.interfaces.nsITimer.TYPE_REPEATING_SLACK);
- chrome\content\menu.xul
- <?xml version="1.0"?><overlay id="menu" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"><script type="application/x-javascript" src="functions.js"></script></overlay>
Untitled
Posted by Anonymous on Thu 22nd Nov 2012 03:01
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.