diff --git a/browser/base/content/browser-context.inc b/browser/base/content/browser-context.inc index 296045001930..da792cc12797 100644 --- a/browser/base/content/browser-context.inc +++ b/browser/base/content/browser-context.inc @@ -5,12 +5,14 @@ diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index b5cc938e53ca..5fa371a08198 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -1966,6 +1966,26 @@ var gBrowserInit = { SetClickAndHoldHandlers(); } + function initBackForwardButtonTooltip(tooltipId, l10nId, shortcutId) { + let shortcut = document.getElementById(shortcutId); + shortcut = ShortcutUtils.prettifyShortcut(shortcut); + + let tooltip = document.getElementById(tooltipId); + document.l10n.setAttributes(tooltip, l10nId, { shortcut }); + } + + initBackForwardButtonTooltip( + "back-button-tooltip-description", + "navbar-tooltip-back-2", + "goBackKb" + ); + + initBackForwardButtonTooltip( + "forward-button-tooltip-description", + "navbar-tooltip-forward-2", + "goForwardKb" + ); + PlacesToolbarHelper.init(); ctrlTab.readPref(); diff --git a/browser/base/content/browser.xhtml b/browser/base/content/browser.xhtml index abd027a0cf1f..280d722762a9 100644 --- a/browser/base/content/browser.xhtml +++ b/browser/base/content/browser.xhtml @@ -619,12 +619,12 @@ - + - + @@ -1761,7 +1761,7 @@