mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-07 07:47:30 +09:00
Add extra JS scope for DownloadUtils in urlbarBinding.xml to cater to global lexical scope.
This commit is contained in:
parent
8375cbc1a3
commit
22a912af4d
1 changed files with 5 additions and 3 deletions
|
|
@ -990,9 +990,11 @@
|
||||||
document.getAnonymousElementByAttribute(this, "anonid", "cancel");
|
document.getAnonymousElementByAttribute(this, "anonid", "cancel");
|
||||||
</field>
|
</field>
|
||||||
<field name="DownloadUtils" readonly="true">
|
<field name="DownloadUtils" readonly="true">
|
||||||
let utils = {};
|
{
|
||||||
Components.utils.import("resource://gre/modules/DownloadUtils.jsm", utils);
|
let utils = {};
|
||||||
utils.DownloadUtils;
|
Components.utils.import("resource://gre/modules/DownloadUtils.jsm", utils);
|
||||||
|
utils.DownloadUtils;
|
||||||
|
}
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
<method name="destroy">
|
<method name="destroy">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue