зеркало из https://github.com/mozilla/pjs.git
Bug 151807: New Tab button and New Tab context menu items don't set focus to urlbar after opening the new tab. r=bryner, sr=blake
This commit is contained in:
Родитель
14d4c44cbb
Коммит
ef7a5b22d8
|
@ -390,9 +390,10 @@ Contributor(s): ______________________________________. -->
|
|||
<!-- this box is temporary, pending XBLified <browser> -->
|
||||
<hbox id="browser" flex="1">
|
||||
<tabbrowser id="content"
|
||||
flex="1" contenttooltip="aHTMLTooltip"
|
||||
contentcontextmenu="contentAreaContextMenu"
|
||||
onclick="return contentAreaClick(event);"/>
|
||||
flex="1" contenttooltip="aHTMLTooltip"
|
||||
contentcontextmenu="contentAreaContextMenu"
|
||||
onnewtab="BrowserOpenTab();"
|
||||
onclick="return contentAreaClick(event);"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</hbox>
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
<xul:tooltip onpopupshowing="event.preventBubble(); if (document.tooltipNode.hasAttribute('label')) { this.setAttribute('label', document.tooltipNode.getAttribute('label')); return true; } return false;"/>
|
||||
<xul:menupopup onpopupshowing="this.parentNode.parentNode.parentNode.updatePopupMenu(this);">
|
||||
<xul:menuitem label="&newTab.label;" accesskey="&newTab.accesskey;"
|
||||
oncommand="this.parentNode.parentNode.parentNode.parentNode.newTab();"/>
|
||||
xbl:inherits="oncommand=onnewtab"/>
|
||||
<xul:menuseparator/>
|
||||
<xul:menuitem label="&reloadTab.label;" accesskey="&reloadTab.accesskey;"
|
||||
oncommand="var tabbrowser = this.parentNode.parentNode.parentNode.parentNode;
|
||||
|
@ -86,10 +86,7 @@
|
|||
event.stopPropagation();"
|
||||
ondragdrop="nsDragAndDrop.drop(event, this.parentNode.parentNode.parentNode);
|
||||
event.stopPropagation();"
|
||||
onnewtab="var node = this.parentNode;
|
||||
while (node.localName != 'tabbrowser')
|
||||
node = node.parentNode;
|
||||
node.newTab();"
|
||||
xbl:inherits="onnewtab"
|
||||
onclosetab="var node = this.parentNode;
|
||||
while (node.localName != 'tabbrowser')
|
||||
node = node.parentNode;
|
||||
|
@ -588,14 +585,6 @@
|
|||
</body>
|
||||
</method>
|
||||
|
||||
<method name="newTab">
|
||||
<body>
|
||||
<![CDATA[
|
||||
this.selectedTab = this.addTab('about:blank');
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="addTab">
|
||||
<parameter name="aURI"/>
|
||||
<parameter name="aReferrerURI"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче