Bug 1025568 - fix contextmenu actions across page loads, r=MattN

--HG--
extra : commitid : HWHeooHCAH
extra : rebase_source : 7654e7a347e0c00cd572e7f1fc0b352039cf8450
This commit is contained in:
Gijs Kruitbosch 2015-10-23 12:48:59 +01:00
parent ec335abb8b
commit 1650e4eeec

View File

@ -99,7 +99,7 @@ var handleContentContextMenu = function (event) {
Services.obs.notifyObservers(subject, "content-contextmenu", null);
let doc = event.target.ownerDocument;
let docLocation = doc.location.href;
let docLocation = doc.location ? doc.location.href : undefined;
let charSet = doc.characterSet;
let baseURI = doc.baseURI;
let referrer = doc.referrer;
@ -1264,4 +1264,4 @@ var PageInfoListener = {
return text.replace(endRE, "");
}
};
PageInfoListener.init();
PageInfoListener.init();