Bug 400935: Opening the identity box shouldn't select the address, patch by Dão Gottwald <dao@mozilla.com>, r=me
authorgavin@gavinsharp.com
Tue, 06 Nov 2007 10:48:58 -0800
changeset 7363 e9e6b03370a6a622f2969814df1d61445041566b
parent 7362 7b839c8ce2b1a186a9bb65b66253b786d8f17ad8
child 7364 4ebdc94185e73540c0a18f7d347887cd69dedb5e
push idunknown
push userunknown
push dateunknown
reviewersme
bugs400935
milestone1.9a9pre
Bug 400935: Opening the identity box shouldn't select the address, patch by Dão Gottwald <dao@mozilla.com>, r=me
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -5851,16 +5851,18 @@ IdentityHandler.prototype = {
     this._identityPopupContentSupp.textContent = supplemental;
     this._identityPopupContentVerif.textContent = verifier;
   },
   
   /**
    * Click handler for the identity-box element in primary chrome.  
    */
   handleIdentityClick : function(event) {
+    event.stopPropagation();
+
     if (event.button != 0)
       return; // We only want left-clicks
         
     // Make sure that the display:none style we set in xul is removed now that
     // the popup is actually needed
     this._identityPopup.hidden = false;
     
     // Tell the popup to consume dismiss clicks, to avoid bug 395314