Bug 619309 Clicking on miscellaneous URLbar icons shouldn't select the URL text r=IanN

This commit is contained in:
Neil Rashbrook 2011-01-05 23:26:57 +00:00
Родитель c78fe4dce6
Коммит 0ae2bc4ebd
2 изменённых файлов: 6 добавлений и 6 удалений

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

@ -312,7 +312,9 @@
onfocus="URLBarFocusHandler(event);"
onmousedown="URLBarMouseDownHandler(event);"
onclick="URLBarClickHandler(event);">
<box id="notification-popup-box" hidden="true" align="center">
<box id="notification-popup-box" hidden="true" align="center"
onmousedown="event.stopPropagation();"
onclick="event.stopPropagation();">
<image id="geo-notification-icon" class="notification-anchor-icon" role="button"/>
<image id="addons-notification-icon" class="notification-anchor-icon" role="button"/>
<image id="password-notification-icon" class="notification-anchor-icon" role="button"/>
@ -330,8 +332,9 @@
onerror="gBrowser.addToMissedIconCache(this.src);"
tooltiptext="&proxyIcon.tooltip;"/>
</deck>
<hbox id="urlbar-icons"
class="urlbar-icons">
<hbox id="urlbar-icons" class="urlbar-icons"
onmousedown="event.stopPropagation();"
onclick="event.stopPropagation();">
<image id="feedsButton" hidden="true" popup="feedsPopup"/>
<image id="ev-button" hidden="true"
onclick="if (event.button == 0) BrowserPageInfo(null, 'securityTab');"/>

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

@ -750,9 +750,6 @@ var PlacesStarButton = {
onClick: function PSB_onClick(aEvent) {
if (aEvent.button == 0)
PlacesCommandHook.bookmarkCurrentPage(this._starred);
// don't bubble to the textbox so that the address won't be selected
aEvent.stopPropagation();
},
// nsINavBookmarkObserver