Bug 592299 - Bookmarks context menu should not appear if the current bookmark is in edit mode [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Tue, 31 Aug 2010 23:48:34 +0200
changeset 1875 220702dba766a092228b8642b815d33dc69dc6cd
parent 1874 4fb363178ae243b7e5108dbdab4ef04c96e919b3
child 1876 af07a287e16d1e4ba0ccbcda0b041afb9da62665
push id1660
push uservnicolas@mozilla.com
push dateTue, 31 Aug 2010 21:51:24 +0000
reviewersmfinkle
bugs592299
Bug 592299 - Bookmarks context menu should not appear if the current bookmark is in edit mode [r=mfinkle]
chrome/content/bindings.xml
--- a/chrome/content/bindings.xml
+++ b/chrome/content/bindings.xml
@@ -353,17 +353,17 @@
       <handler event="click" button="0">
         <![CDATA[
           if (this.control)
             this.control._fireOpen(event, this);
         ]]>
       </handler>
       <handler event="contextmenu" phase="capturing">
         <![CDATA[
-          if (!this.uri)
+          if (!this.uri || this._isEditing)
             return;
 
           let data = {
             target: this,
             json: {
               types: ["edit-bookmark"],
               label: this.uri.spec
           }};