From bdb17e6db6499a482f138e2bc2f20e10d43a0930 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Wed, 21 Apr 2021 20:43:05 +0800 Subject: Issue #39 - Warn before opening many URI nodes in tabs --- basilisk/components/places/PlacesUIUtils.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basilisk/components/places/PlacesUIUtils.jsm b/basilisk/components/places/PlacesUIUtils.jsm index dc0463c..c38edce 100644 --- a/basilisk/components/places/PlacesUIUtils.jsm +++ b/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); + } }, /** -- cgit v1.2.3