fx-compat: Fix attaching CookieSandbox to a browser
This commit is contained in:
parent
667058204d
commit
b2947aede0
1 changed files with 1 additions and 2 deletions
|
@ -336,8 +336,7 @@ Zotero.CookieSandbox.Observer = new function() {
|
||||||
} else {
|
} else {
|
||||||
// try the browser
|
// try the browser
|
||||||
try {
|
try {
|
||||||
browser = notificationCallbacks.getInterface(Ci.nsIWebNavigation)
|
browser = notificationCallbacks.getInterface(Ci.nsILoadContext).topFrameElement;
|
||||||
.QueryInterface(Ci.nsIDocShell).chromeEventHandler;
|
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
if(browser) {
|
if(browser) {
|
||||||
tested = true;
|
tested = true;
|
||||||
|
|
Loading…
Reference in a new issue