Skip to content

Commit

Permalink
Backed out changeset 1c7a1d0fda0e (bug 1317138) for browser-chrome fa…
Browse files Browse the repository at this point in the history
…ilures on browser_duplicateIDs.js. CLOSED TREE
  • Loading branch information
ncsoregi committed Aug 13, 2019
1 parent b1fd28e commit dc6efa0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
6 changes: 1 addition & 5 deletions browser/base/content/browser.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -729,11 +729,7 @@
</hbox>
<arrowscrollbox orient="horizontal" flex="1" style="min-width: 1px;" clicktoscroll="true" class="tabbrowser-arrowscrollbox" scrolledtostart="true" scrolledtoend="true">
<tab is="tabbrowser-tab" class="tabbrowser-tab" selected="true" visuallyselected="true" fadein="true"/>
<toolbarbutton id="tabs-newtab-button"
class="tabs-newtab-button toolbarbutton-1"
command="cmd_newNavigatorTab"
onclick="checkForMiddleClick(this, event);"
tooltip="dynamic-shortcut-tooltip"/>
<toolbarbutton class="tabs-newtab-button toolbarbutton-1" command="cmd_newNavigatorTab" onclick="checkForMiddleClick(this, event);"/>
<spacer class="closing-tabs-spacer" style="width: 0;"/>
</arrowscrollbox>
<html:span id="tabbrowser-tab-a11y-desc" hidden="true"/>
Expand Down
14 changes: 5 additions & 9 deletions browser/base/content/tabbrowser-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@
var tab = this.allTabs[0];
tab.label = this.emptyTabTitle;

this.newTabButton.setAttribute(
"tooltiptext",
GetDynamicShortcutTooltipText("tabs-newtab-button")
);

window.addEventListener("resize", this);

this.boundObserve = (...args) => this.observe(...args);
Expand Down Expand Up @@ -1083,15 +1088,6 @@

parent.setAttribute("type", "menu");
}

// Update tooltip text and evict from tooltip cache
if (containersEnabled) {
nodeToTooltipMap[parent.id] = "newTabContainer.tooltip";
} else {
nodeToTooltipMap[parent.id] = "newTabButton.tooltip";
}

gDynamicTooltipCache.delete(parent.id);
}

break;
Expand Down
1 change: 0 additions & 1 deletion browser/locales/en-US/chrome/browser/browser.properties
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ newWindowButton.tooltip=Open a new window (%S)
# LOCALIZATION NOTE (newTabButton.tooltip):
# %S is the keyboard shortcut for "New Tab"
newTabButton.tooltip=Open a new tab (%S)
newTabContainer.tooltip=Open a new tab (%S)\nPress and hold to open a new container tab

# Offline web applications
offlineApps.available2=Will you allow %S to store data on your computer?
Expand Down

0 comments on commit dc6efa0

Please sign in to comment.