mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 427200 - rightclick on bookmarks on the bookmarks toolbar is broken. r=dietrich.
This commit is contained in:
parent
130fc53345
commit
6ccf6528d3
@ -936,6 +936,7 @@
|
||||
// disable the Delete command if the selection isn't explicit
|
||||
if (document.popupNode && document.popupNode.localName == "menupopup")
|
||||
document.getElementById("cmd_delete").setAttribute("disabled", "true");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
]]></body>
|
||||
|
@ -365,6 +365,9 @@
|
||||
<getter><![CDATA[
|
||||
if (this._contextMenuShown) {
|
||||
var popupNode = document.popupNode;
|
||||
if (popupNode == this)
|
||||
return this.getResultNode();
|
||||
|
||||
return popupNode.node || popupNode.parentNode._resultNode || null;
|
||||
}
|
||||
return null;
|
||||
@ -952,6 +955,7 @@
|
||||
// disable the Delete command if the selection isn't explicit
|
||||
if (document.popupNode && document.popupNode.localName == "menupopup")
|
||||
document.getElementById("cmd_delete").setAttribute("disabled", "true");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
]]></body>
|
||||
|
Loading…
Reference in New Issue
Block a user