rem: gMouseDownX = -1; if (gURLBar) { if (gClickSelectsAll) { var focusedElement = null; if (document.commandDispatcher.focusedElement) focusedElement = document.commandDispatcher.focusedElement.parentNode.parentNode.parentNode; if (!focusedElement || (focusedElement && focusedElement != gURLBar)) {   gIgnoreFocusCount = 1; gIgnoreFocus = true; gMouseDownX = aEvent.screenX; } else if (aEvent.button == 2 && focusedElement && focusedElement == gURLBar) { gIgnoreFocusCount = 0; gIgnoreFocus = true; } } 
add: if (gURLBar.hasAttribute("focused")) { gIgnoreClick = true; } else { gIgnoreFocus = true; gIgnoreClick = false; gURLBar.setSelectionRange(0, 0); 
context: function URLBarMouseDownHandler(aEvent){  gMouseDownX = -1;  if (gURLBar) {    if (gClickSelectsAll) {      var focusedElement = null;      if (document.commandDispatcher.focusedElement)        focusedElement = document.commandDispatcher.focusedElement.parentNode.parentNode.parentNode;      if (!focusedElement || (focusedElement && focusedElement != gURLBar))      {        // clicking onto the url bar when it doesn't have focus.        // see note in URLBarFocusHandler() about gIgnoreFocusCount.        gIgnoreFocusCount = 1;        gIgnoreFocus = true;        gMouseDownX = aEvent.screenX;      }      else if (aEvent.button == 2 && focusedElement && focusedElement == gURLBar) {        gIgnoreFocusCount = 0;        gIgnoreFocus = true;      }    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/5640958a00217da9e4e1462dcc64b5f0914c98f4/navigator.js/clean/xpfe/browser/resources/content/navigator.js