From 70bc2fc87767ab393b9d0c2e4d54effd20d016b1 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Tue, 4 May 2021 11:42:08 -0400 Subject: Backport UXP Issue #39 - Warn before opening many URI nodes in tabs --- components/places/PlacesUIUtils.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/places/PlacesUIUtils.jsm b/components/places/PlacesUIUtils.jsm index 035fc12..4d55b6f 100644 --- a/components/places/PlacesUIUtils.jsm +++ b/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