From 748cac6e807ddb71a61da8ffac89b5146f88730c Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Tue, 11 Jul 2023 18:11:00 -0400 Subject: [PATCH] [Basilisk] Front-end fixes Partial backport of MoonchildProductions/Pale-Moon commit 84c814f55c --- application/basilisk/base/content/browser-places.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/basilisk/base/content/browser-places.js b/application/basilisk/base/content/browser-places.js index 3ceb635a8b..a330b00399 100644 --- a/application/basilisk/base/content/browser-places.js +++ b/application/basilisk/base/content/browser-places.js @@ -642,8 +642,9 @@ var PlacesCommandHook = { updateBookmarkAllTabsCommand: function PCH_updateBookmarkAllTabsCommand() { // There's nothing to do in non-browser windows. - if (window.location.href != getBrowserURL()) + if (!window.location || window.location.href != getBrowserURL()) { return; + } // Disable "Bookmark All Tabs" if there are less than two // "unique current pages".