Always set gContextMenu.menu b=332874 r+sr=jag

This commit is contained in:
neil%parkwaycc.co.uk 2006-07-29 05:44:44 +00:00
Родитель 1cd9b4d68b
Коммит eb38008830
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -80,14 +80,14 @@ nsContextMenu.prototype = {
},
// Initialize context menu.
initMenu : function ( popup ) {
// Save menu.
this.menu = popup;
const xulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
if ( document.popupNode.namespaceURI == xulNS ) {
this.shouldDisplay = false;
return;
}
// Save menu.
this.menu = popup;
// Get contextual info.
this.setTarget( document.popupNode );