summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-04-23 21:50:33 +0000
committerMoonchild <moonchild@palemoon.org>2021-04-23 21:50:33 +0000
commit173ff3ae854ac9f68756cb3c5d897d3844c2f9cd (patch)
tree1b8ddb79de71777b4ddcfaee30b622889899c928
parentd9177d1c3b7037c3c29253e14f34455a593bfb4b (diff)
parentbdb17e6db6499a482f138e2bc2f20e10d43a0930 (diff)
downloadbasilisk-173ff3ae854ac9f68756cb3c5d897d3844c2f9cd.tar.gz
Merge pull request 'Warn before opening many URI nodes in tabs' (#40) from FranklinDM/Basilisk:issue-39-work into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/Basilisk/pulls/40
-rw-r--r--basilisk/components/places/PlacesUIUtils.jsm4
1 files changed, 3 insertions, 1 deletions
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);
+ }
},
/**