summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-06-28 17:24:46 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-28 17:24:46 +0200
commit8efb8f608f4da9bf7f728e1ec2f597a2900be109 (patch)
tree30a0169564734fda70aff95b5675d01088058816 /application/palemoon/base
parentd441fb58b9042f8fcd4b6eaf9ffc0d00b1f4660b (diff)
downloadUXP-8efb8f608f4da9bf7f728e1ec2f597a2900be109.tar
UXP-8efb8f608f4da9bf7f728e1ec2f597a2900be109.tar.gz
UXP-8efb8f608f4da9bf7f728e1ec2f597a2900be109.tar.lz
UXP-8efb8f608f4da9bf7f728e1ec2f597a2900be109.tar.xz
UXP-8efb8f608f4da9bf7f728e1ec2f597a2900be109.zip
Add missing aCurrentBrowser definition in utilityOverlay.js
Follow-up to cadeea97bbefe42f89d16a4678fdc382c7b74bcd This obsoletes #561.
Diffstat (limited to 'application/palemoon/base')
-rw-r--r--application/palemoon/base/content/utilityOverlay.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/palemoon/base/content/utilityOverlay.js b/application/palemoon/base/content/utilityOverlay.js
index c45297e0b..63488e209 100644
--- a/application/palemoon/base/content/utilityOverlay.js
+++ b/application/palemoon/base/content/utilityOverlay.js
@@ -250,6 +250,10 @@ function openLinkIn(url, where, params) {
aRelatedToCurrent = false;
}
+ // We can only do this after we're sure of what |w| will be the rest of this function.
+ // Note that if |w| is null we might have no current browser (we'll open a new window).
+ var aCurrentBrowser = params.currentBrowser || (w && w.gBrowser.selectedBrowser);
+
if (!w || where == "window") {
// This propagates to window.arguments.
// Strip referrer data when opening a new private window, to prevent