From 0be821b7c17f246b8d615d1578dd9760e4056b50 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Wed, 21 Apr 2021 20:43:05 +0800 Subject: [PATCH] [Basilisk] Issue #39 - Warn before opening many URI nodes in tabs --- application/basilisk/components/places/PlacesUIUtils.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/basilisk/components/places/PlacesUIUtils.jsm b/application/basilisk/components/places/PlacesUIUtils.jsm index dc0463c37f..c38edce230 100644 --- a/application/basilisk/components/places/PlacesUIUtils.jsm +++ b/application/basilisk/components/places/PlacesUIUtils.jsm @@ -1018,7 +1018,9 @@ this.PlacesUIUtils = { if (PlacesUtils.nodeIsURI(aNodes[i])) urlsToOpen.push({uri: aNodes[i].uri, isBookmark: PlacesUtils.nodeIsBookmark(aNodes[i])}); } - this._openTabset(urlsToOpen, aEvent, window); + if (this.confirmOpenInTabs(urlsToOpen.length, window)) { + this._openTabset(urlsToOpen, aEvent, window); + } }, /**