Don't break launch on Fx 3.6

This commit is contained in:
Simon Kornblith 2012-02-13 20:46:24 -05:00
parent 6138149e6d
commit ad6e4242a9

View file

@ -117,13 +117,13 @@ Zotero.CookieSandbox.Observer = new function() {
getService(Components.interfaces.nsIObserverService),
observing = false;
this.trackedBrowsers = new WeakMap();
this.trackedInterfaceRequestors = new WeakMap();
/**
* Registers cookie manager and observer, if necessary
*/
this.register = function(CookieSandbox) {
this.trackedBrowsers = new WeakMap();
this.trackedInterfaceRequestors = new WeakMap();
if(!observing) {
Zotero.debug("CookieSandbox: Registering observers");
for each(var topic in observeredTopics) observerService.addObserver(this, topic, false);
@ -135,11 +135,6 @@ Zotero.CookieSandbox.Observer = new function() {
* Implements nsIObserver to watch for new cookies and to add sandboxed cookies
*/
this.observe = function(channel, topic) {
if(topic == "quit-application" && cookieSandboxes.length) {
Zotero.debug("WARNING: A CookieSandbox for "+cookieSandboxes[0].URI.spec+" was still open on shutdown");
return;
}
channel.QueryInterface(Components.interfaces.nsIHttpChannel);
var trackedBy, tested, browser, callbacks,
channelURI = channel.URI.spec,