summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2021-05-04 11:42:08 -0400
committerGaming4JC <g4jc@hyperbola.info>2021-05-04 11:42:08 -0400
commit70bc2fc87767ab393b9d0c2e4d54effd20d016b1 (patch)
tree4a481e49b2b767244644a521cda343f1413806b7
parentcd85d56844ea5b009dfd14d23c1598f430ace949 (diff)
downloadiceweasel-uxp-70bc2fc87767ab393b9d0c2e4d54effd20d016b1.tar.gz
Backport UXP Issue #39 - Warn before opening many URI nodes in tabs
-rw-r--r--components/places/PlacesUIUtils.jsm4
1 files changed, 3 insertions, 1 deletions
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);
+ }
},
/**