diff --git a/application/basilisk/base/content/browser.js b/application/basilisk/base/content/browser.js
index 7d897b1569..6c917c4271 100644
--- a/application/basilisk/base/content/browser.js
+++ b/application/basilisk/base/content/browser.js
@@ -7441,6 +7441,12 @@ var TabContextMenu = {
document.getElementById("context_pinTab").hidden = this.contextTab.pinned;
document.getElementById("context_unpinTab").hidden = !this.contextTab.pinned;
+ // Disable "Close Tabs to the Left" if there are no tabs before it,
+ // and hide it when the user rightclicked on a pinned tab.
+ document.getElementById("context_closeTabsToTheStart").disabled =
+ gBrowser.getTabsToTheStartFrom(this.contextTab).length == 0;
+ document.getElementById("context_closeTabsToTheStart").hidden = this.contextTab.pinned;
+
// Disable "Close Tabs to the Right" if there are no tabs
// following it and hide it when the user rightclicked on a pinned
// tab.
diff --git a/application/basilisk/base/content/browser.xul b/application/basilisk/base/content/browser.xul
index cbe581df44..f4b802b245 100644
--- a/application/basilisk/base/content/browser.xul
+++ b/application/basilisk/base/content/browser.xul
@@ -112,6 +112,8 @@
label="&bookmarkAllTabs.label;"
accesskey="&bookmarkAllTabs.accesskey;"
command="Browser:BookmarkAllTabs"/>
+