summaryrefslogtreecommitdiffstats
path: root/application/palemoon
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-04-18 10:57:23 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-04-18 10:57:23 +0200
commit8361c83e41cb4b2306010e3a77836769f0423328 (patch)
treeb4a82eb5655da451e5e1a84aea78fc34b9f5d589 /application/palemoon
parent8dea5c84fc874e0179dcde46697e99d8b750ecd8 (diff)
downloadUXP-8361c83e41cb4b2306010e3a77836769f0423328.tar
UXP-8361c83e41cb4b2306010e3a77836769f0423328.tar.gz
UXP-8361c83e41cb4b2306010e3a77836769f0423328.tar.lz
UXP-8361c83e41cb4b2306010e3a77836769f0423328.tar.xz
UXP-8361c83e41cb4b2306010e3a77836769f0423328.zip
Add extra JS scope for DownloadUtils in urlbarBinding.xml to cater to global lexical scope.
Diffstat (limited to 'application/palemoon')
-rw-r--r--application/palemoon/base/content/urlbarBindings.xml8
1 files changed, 5 insertions, 3 deletions
diff --git a/application/palemoon/base/content/urlbarBindings.xml b/application/palemoon/base/content/urlbarBindings.xml
index 6b4350f99..330a1b28a 100644
--- a/application/palemoon/base/content/urlbarBindings.xml
+++ b/application/palemoon/base/content/urlbarBindings.xml
@@ -990,9 +990,11 @@
document.getAnonymousElementByAttribute(this, "anonid", "cancel");
</field>
<field name="DownloadUtils" readonly="true">
- let utils = {};
- Components.utils.import("resource://gre/modules/DownloadUtils.jsm", utils);
- utils.DownloadUtils;
+ {
+ let utils = {};
+ Components.utils.import("resource://gre/modules/DownloadUtils.jsm", utils);
+ utils.DownloadUtils;
+ }
</field>
<method name="destroy">