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 {
|
||||
// try the browser
|
||||
try {
|
||||
browser = notificationCallbacks.getInterface(Ci.nsIWebNavigation)
|
||||
.QueryInterface(Ci.nsIDocShell).chromeEventHandler;
|
||||
browser = notificationCallbacks.getInterface(Ci.nsILoadContext).topFrameElement;
|
||||
} catch(e) {}
|
||||
if(browser) {
|
||||
tested = true;
|
||||
|
|
Loading…
Reference in a new issue