Don't break launch on Fx 3.6
This commit is contained in:
parent
6138149e6d
commit
ad6e4242a9
1 changed files with 3 additions and 8 deletions
|
@ -117,13 +117,13 @@ Zotero.CookieSandbox.Observer = new function() {
|
||||||
getService(Components.interfaces.nsIObserverService),
|
getService(Components.interfaces.nsIObserverService),
|
||||||
observing = false;
|
observing = false;
|
||||||
|
|
||||||
this.trackedBrowsers = new WeakMap();
|
|
||||||
this.trackedInterfaceRequestors = new WeakMap();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers cookie manager and observer, if necessary
|
* Registers cookie manager and observer, if necessary
|
||||||
*/
|
*/
|
||||||
this.register = function(CookieSandbox) {
|
this.register = function(CookieSandbox) {
|
||||||
|
this.trackedBrowsers = new WeakMap();
|
||||||
|
this.trackedInterfaceRequestors = new WeakMap();
|
||||||
|
|
||||||
if(!observing) {
|
if(!observing) {
|
||||||
Zotero.debug("CookieSandbox: Registering observers");
|
Zotero.debug("CookieSandbox: Registering observers");
|
||||||
for each(var topic in observeredTopics) observerService.addObserver(this, topic, false);
|
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
|
* Implements nsIObserver to watch for new cookies and to add sandboxed cookies
|
||||||
*/
|
*/
|
||||||
this.observe = function(channel, topic) {
|
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);
|
channel.QueryInterface(Components.interfaces.nsIHttpChannel);
|
||||||
var trackedBy, tested, browser, callbacks,
|
var trackedBy, tested, browser, callbacks,
|
||||||
channelURI = channel.URI.spec,
|
channelURI = channel.URI.spec,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue