* fixes in urlbar

master
Dominika 2021-12-05 14:19:37 +01:00
parent 94123cfebe
commit 3c4b8f2f40
1 changed files with 28 additions and 139 deletions

View File

@ -1,6 +1,6 @@
--- a/browser/base/content/navigator-toolbox.inc.xhtml 2021-09-28 01:17:27.000000000 +0200
+++ b/browser/base/content/navigator-toolbox.inc.xhtml 2021-10-12 00:25:27.055330998 +0200
@@ -28,83 +28,6 @@
--- firefox-94.0/browser/base/content/navigator-toolbox.inc.xhtml
+++ _firefox/browser/base/content/navigator-toolbox.inc.xhtml
@@ -28,71 +28,6 @@
#include titlebar-items.inc.xhtml
</toolbar>
@ -10,7 +10,7 @@
- customizable="true"
- customizationtarget="TabsToolbar-customization-target"
- mode="icons"
- aria-label="&tabsToolbar.label;"
- data-l10n-id="tabs-toolbar"
- context="toolbar-context-menu"
- flex="1">
-
@ -40,7 +40,7 @@
-
- <toolbarbutton id="new-tab-button"
- class="toolbarbutton-1 chromeclass-toolbar-additional"
- label="&tabCmd.label;"
- data-l10n-id="tabs-toolbar-new-tab"
- command="cmd_newNavigatorTab"
- onclick="checkForMiddleClick(this, event);"
- tooltip="dynamic-shortcut-tooltip"
@ -54,62 +54,31 @@
- class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button"
- badged="true"
- oncommand="gTabsPanel.showAllTabsPanel(event);"
- label="&listAllTabs.label;"
- tooltiptext="&listAllTabs.label;"
- data-l10n-id="tabs-toolbar-list-all-tabs"
- removable="false"/>
- </hbox>
- </hbox>
-
- <hbox class="titlebar-spacer" type="post-tabs"/>
-
-#ifndef XP_MACOSX
- <button class="accessibility-indicator" tooltiptext="&accessibilityIndicator.tooltip;"
- <button class="accessibility-indicator" data-l10n-id="navbar-accessibility-indicator"
- aria-live="polite"/>
- <hbox class="private-browsing-indicator"/>
-#endif
-
-#include titlebar-items.inc.xhtml
-
-#ifdef XP_MACOSX
- <!-- OS X does not natively support RTL for its titlebar items, so we prevent this secondary
- buttonbox from reversing order in RTL by forcing an LTR direction. -->
- <hbox id="titlebar-secondary-buttonbox" dir="ltr">
- <button class="accessibility-indicator" tooltiptext="&accessibilityIndicator.tooltip;" aria-live="polite"/>
- <hbox class="private-browsing-indicator"/>
- <hbox id="titlebar-fullscreen-button"/>
- </hbox>
-#endif
- </toolbar>
-
</vbox>
<toolbar id="nav-bar"
@@ -137,28 +60,33 @@
@@ -125,9 +60,16 @@
onclick="checkForMiddleClick(this, event);"
tooltip="forward-button-tooltip"
context="backForwardMenu"/>
- <toolbaritem id="stop-reload-button" class="chromeclass-toolbar-additional"
- data-l10n-id="toolbar-button-stop-reload"
- removable="true" overflows="false">
- <toolbarbutton id="reload-button" class="toolbarbutton-1"
- data-l10n-id="toolbar-button-reload"
- command="Browser:ReloadOrDuplicate"
- onclick="checkForMiddleClick(this, event);"
- tooltip="dynamic-shortcut-tooltip">
- <box class="toolbarbutton-animatable-box">
- <image class="toolbarbutton-animatable-image"/>
- </box>
- </toolbarbutton>
- <toolbarbutton id="stop-button" class="toolbarbutton-1"
- data-l10n-id="toolbar-button-stop"
- command="Browser:Stop"
- tooltip="dynamic-shortcut-tooltip">
- <box class="toolbarbutton-animatable-box">
- <image class="toolbarbutton-animatable-image"/>
- </box>
- </toolbarbutton>
- </toolbaritem>
- <toolbarspring cui-areatype="toolbar" class="chromeclass-toolbar-additional"/>
+ <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
+ removable="true"
+ label="&homeButton.label;"
@ -120,27 +89,19 @@
+ onclick="BrowserHome(event);"
+ cui-areatype="toolbar"
+ tooltiptext="&homeButton.defaultPage.tooltip;"/>
+ <toolbarbutton id="reload-button" class="toolbarbutton-1"
+ data-l10n-id="toolbar-button-reload"
+ command="Browser:ReloadOrDuplicate"
+ onclick="checkForMiddleClick(this, event);"
+ tooltip="dynamic-shortcut-tooltip">
+ <box class="toolbarbutton-animatable-box">
+ <image class="toolbarbutton-animatable-image"/>
+ </box>
+ </toolbarbutton>
+ <toolbarbutton id="stop-button" class="toolbarbutton-1"
+ data-l10n-id="toolbar-button-stop"
+ command="Browser:Stop"
+ tooltip="dynamic-shortcut-tooltip">
+ <box class="toolbarbutton-animatable-box">
+ <image class="toolbarbutton-animatable-image"/>
+ </box>
+ </toolbarbutton>
<toolbarbutton id="reload-button" class="toolbarbutton-1"
data-l10n-id="toolbar-button-reload"
command="Browser:ReloadOrDuplicate"
@@ -145,8 +87,6 @@
<image class="toolbarbutton-animatable-image"/>
</box>
</toolbarbutton>
- </toolbaritem>
- <toolbarspring cui-areatype="toolbar" class="chromeclass-toolbar-additional"/>
<toolbaritem id="urlbar-container" flex="400" persist="width"
removable="false"
class="chromeclass-location" overflows="false">
@@ -180,20 +108,6 @@
@@ -168,20 +108,6 @@
class="chromeclass-toolbar-additional"/>
<!-- Use onclick instead of normal popup= syntax since the popup
code fires onmousedown, and hence eats our favicon drag events. -->
@ -161,7 +122,7 @@
<box id="identity-box"
pageproxystate="invalid"
ondragstart="gIdentityHandler.onDragStart(event);">
@@ -380,8 +294,6 @@
@@ -368,8 +294,6 @@
<toolbartabstop/>
</toolbaritem>
@ -170,17 +131,18 @@
<toolbarbutton id="downloads-button"
class="toolbarbutton-1 chromeclass-toolbar-additional"
badged="true"
@@ -539,6 +451,83 @@
@@ -526,6 +450,71 @@
</hbox>
</toolbaritem>
</toolbar>
+ <toolbar id="TabsToolbar"
+
+ <toolbar id="TabsToolbar"
+ class="browser-toolbar titlebar-color"
+ fullscreentoolbar="true"
+ customizable="true"
+ customizationtarget="TabsToolbar-customization-target"
+ mode="icons"
+ aria-label="&tabsToolbar.label;"
+ data-l10n-id="tabs-toolbar"
+ context="toolbar-context-menu"
+ flex="1">
+
@ -210,7 +172,7 @@
+
+ <toolbarbutton id="new-tab-button"
+ class="toolbarbutton-1 chromeclass-toolbar-additional"
+ label="&tabCmd.label;"
+ data-l10n-id="tabs-toolbar-new-tab"
+ command="cmd_newNavigatorTab"
+ onclick="checkForMiddleClick(this, event);"
+ tooltip="dynamic-shortcut-tooltip"
@ -224,93 +186,20 @@
+ class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button"
+ badged="true"
+ oncommand="gTabsPanel.showAllTabsPanel(event);"
+ label="&listAllTabs.label;"
+ tooltiptext="&listAllTabs.label;"
+ data-l10n-id="tabs-toolbar-list-all-tabs"
+ removable="false"/>
+ </hbox>
+ </hbox>
+
+ <hbox class="titlebar-spacer" type="post-tabs"/>
+
+#ifndef XP_MACOSX
+ <button class="accessibility-indicator" tooltiptext="&accessibilityIndicator.tooltip;"
+ <button class="accessibility-indicator" data-l10n-id="navbar-accessibility-indicator"
+ aria-live="polite"/>
+ <hbox class="private-browsing-indicator"/>
+#endif
+
+#include titlebar-items.inc.xhtml
+
+#ifdef XP_MACOSX
+ <!-- OS X does not natively support RTL for its titlebar items, so we prevent this secondary
+ buttonbox from reversing order in RTL by forcing an LTR direction. -->
+ <hbox id="titlebar-secondary-buttonbox" dir="ltr">
+ <button class="accessibility-indicator" tooltiptext="&accessibilityIndicator.tooltip;" aria-live="polite"/>
+ <hbox class="private-browsing-indicator"/>
+ <hbox id="titlebar-fullscreen-button"/>
+ </hbox>
+#endif
+ </toolbar>
+
<html:template id="tab-notification-deck-template">
<html:named-deck id="tab-notification-deck"></html:named-deck>
</html:template>
@@ -682,17 +671,6 @@
<toolbartabstop/>
</toolbaritem>
- <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- removable="true"
- label="&homeButton.label;"
- ondragover="homeButtonObserver.onDragOver(event)"
- ondragenter="homeButtonObserver.onDragOver(event)"
- ondrop="homeButtonObserver.onDrop(event)"
- key="goHome"
- onclick="BrowserHome(event);"
- cui-areatype="toolbar"
- tooltiptext="&homeButton.defaultPage.tooltip;"/>
-
<toolbarbutton id="library-button" class="toolbarbutton-1 chromeclass-toolbar-additional subviewbutton-nav"
removable="true"
onmousedown="PanelUI.showSubView('appMenu-libraryView', this, event);"
--- a/browser/components/customizableui/CustomizableUI.jsm
+++ b/browser/components/customizableui/CustomizableUI.jsm
@@ -240,14 +240,10 @@ var CustomizableUIInternal = {
let navbarPlacements = [
"back-button",
"forward-button",
- "stop-reload-button",
- Services.policies.isAllowed("removeHomeButtonByDefault")
- ? null
- : "home-button",
- "spring",
+ "reload-button",
+ "stop-button",
+ "home-button",
"urlbar-container",
- "spring",
- "save-to-pocket-button",
"downloads-button",
AppConstants.MOZ_DEV_EDITION ? "developer-button" : null,
"fxa-toolbar-menu-button",
--- a/browser/base/content/navigator-toolbox.inc.xhtml 2021-09-28 01:17:27.000000000 +0200
+++ b/browser/base/content/navigator-toolbox.inc.xhtml 2021-10-12 12:07:57.021204838 +0200
@@ -395,7 +395,7 @@
removable="true"
overflows="false"
cui-areatype="toolbar"
- hidden="true"
+ hidden="false"
tooltip="dynamic-shortcut-tooltip"
indicator="true">
<box id="downloads-indicator-anchor"
@@ -438,7 +438,8 @@
</toolbarbutton>
<toolbaritem id="PanelUI-button"
- removable="false">
+ removable="false"
+ style="display: none;">
<toolbarbutton id="ion-button"
class="toolbarbutton-1"
hidden="true"