mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
fixes for 39923 and 38201, urlbar history popup navigation problems
This commit is contained in:
parent
18e1e65295
commit
c920eebd66
@ -265,25 +265,23 @@ Contributor(s): ______________________________________. -->
|
||||
<button class="button-toolbar-1 top" id="stop-button" crop="right" observes="canStop" onclick="BrowserStop()" value="&stopButton.label;"
|
||||
tooltip="aTooltip" tooltiptext="&stopButton.tooltip;"/>
|
||||
|
||||
<box class="box-toolbar-group" flex="1">
|
||||
<menubutton class="menubutton-icon button-toolbar-3" id="ubhist-keyword-popup"
|
||||
tooltip="aTooltip" tooltiptext="&internetKeyword.tooltip;">
|
||||
<menupopup class="button-toolbar-3" oncreate="createUBHistoryMenu(event);" oncommand="executeKeywordCommand(event);"/>
|
||||
</menubutton>
|
||||
|
||||
|
||||
<box id="urlbar-group" class="box-toolbar-group" flex="1">
|
||||
<box autostretch="never" valign="middle" flex="1">
|
||||
<image id="page-proxy-button" ondraggesture="nsDragAndDrop.startDrag(event, proxyIconDNDObserver);"/>
|
||||
<textfield autocomplete="true" timeout="300" class="plain chromeclass-location"
|
||||
searchSessionType="urlbar" id="urlbar" tooltip="aTooltip" tooltiptext="&locationBar.tooltip;"
|
||||
onkeypress="if( event.which == 13 ) { addToUrlbarHistory(); BrowserLoadURL(); }" flex="1"/>
|
||||
</box>
|
||||
<menubutton class="menubutton-icon plain" id="ubhist">
|
||||
<menupopup id="ubhist-popup" popupalign="topright" popupanchor="bottomright"
|
||||
oncreate="createUBHistoryMenu(event);" oncommand="executeUrlBarHistoryCommand(event.target);"/>
|
||||
</menubutton>
|
||||
<button class="button-toolbar-3" id="search-button" value="&searchButton.label;"
|
||||
oncommand="OpenSearch('internet',false, document.getElementById('urlbar').value);"
|
||||
tooltip="aTooltip" tooltiptext="&searchButton.tooltip;"/>
|
||||
<button class="button-toolbar-3" id="go-button" value="&goButton.label;" oncommand="addToUrlbarHistory(); BrowserLoadURL();"
|
||||
tooltip="aTooltip" tooltiptext="&goButton.tooltip;"/>
|
||||
</box>
|
||||
</box>
|
||||
|
||||
</box>
|
||||
<button class="plain" id="navigator-throbber" oncommand="goClickThrobber('browser.throbber.url')" tooltip="aTooltip" tooltiptext="&throbber.tooltip;"/>
|
||||
|
@ -80,10 +80,10 @@ function FillHistoryMenu( aParent, aMenu )
|
||||
}
|
||||
}
|
||||
|
||||
function executeUrlBarHistoryCommand( aEvent )
|
||||
function executeUrlBarHistoryCommand( aTarget)
|
||||
{
|
||||
var index = aEvent.target.getAttribute("index");
|
||||
var value = aEvent.target.value;
|
||||
var index = aTarget.getAttribute("index");
|
||||
var value = aTarget.getAttribute("value");
|
||||
if (index && value)
|
||||
{
|
||||
gURLBar.value = value;
|
||||
|
Loading…
Reference in New Issue
Block a user