mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07:31 +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");
|
||||
</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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue