Add extra JS scope for DownloadUtils in urlbarBinding.xml to cater to global lexical scope.

This commit is contained in:
wolfbeast 2018-04-18 10:57:23 +02:00 • committed by Roy Tam
commit 22a912af4d

View file

@ -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">