diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2021-04-21 20:43:05 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2021-04-21 20:43:05 +0800 |
commit | bdb17e6db6499a482f138e2bc2f20e10d43a0930 (patch) | |
tree | 1b8ddb79de71777b4ddcfaee30b622889899c928 | |
parent | d9177d1c3b7037c3c29253e14f34455a593bfb4b (diff) | |
download | basilisk-bdb17e6db6499a482f138e2bc2f20e10d43a0930.tar.gz |
Issue #39 - Warn before opening many URI nodes in tabs
-rw-r--r-- | basilisk/components/places/PlacesUIUtils.jsm | 4 |
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); + } }, /** |