From 8d7f0a27aa0b2f152410e440882f79bcd8d2387a Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Wed, 21 Apr 2021 11:40:20 +0800 Subject: [PATCH] [Pale-Moon] Issue #1816 - Warn before opening many URI nodes in tabs --- application/palemoon/components/places/PlacesUIUtils.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/palemoon/components/places/PlacesUIUtils.jsm b/application/palemoon/components/places/PlacesUIUtils.jsm index f15886c639..8a7d4a00f1 100644 --- a/application/palemoon/components/places/PlacesUIUtils.jsm +++ b/application/palemoon/components/places/PlacesUIUtils.jsm @@ -759,7 +759,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); + } }, /**