Last active
January 30, 2019 18:42
-
-
Save bwinton/375352994c8be5def5a9dc22d8a515bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/browser/components/touchbar/MacTouchBar.js b/browser/components/touchbar/MacTouchBar.js | |
--- a/browser/components/touchbar/MacTouchBar.js | |
+++ b/browser/components/touchbar/MacTouchBar.js | |
@@ -288,13 +288,16 @@ class TouchBarHelper { | |
this.activeUrl = data; | |
if (data.startsWith("about:reader")) { | |
kBuiltInInputs.ReaderView.disabled = false; | |
- this._updateTouchBarInput("ReaderView"); | |
} else { | |
// ReaderView button is disabled on every location change since | |
// Reader View must determine if the new page can be Reader Viewed. | |
kBuiltInInputs.ReaderView.disabled = true; | |
- this._updateTouchBarInput("ReaderView"); | |
} | |
+ this._updateTouchBarInput("ReaderView"); | |
+ kBuiltInInputs.Back.disabled = !this.window.gBrowser.canGoBack; | |
+ this._updateTouchBarInput("Back"); | |
+ kBuiltInInputs.Forward.disabled = !this.window.gBrowser.canGoForward; | |
+ this._updateTouchBarInput("Forward"); | |
break; | |
case "bookmark-icon-updated": | |
data == "starred" ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment