diff options
author | girst <girst@users.noreply.github.com> | 2022-09-27 14:18:52 +0200 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2022-09-30 18:49:44 +0200 |
commit | c2ebaa3a942180370e9318661ceacf4bae55560c (patch) | |
tree | 570343b4a9af3cd63c0bf8286d8a57d428857ddc /legacy/BootstrapLoader.jsm | |
parent | 0548b59e51d966622e8733c62690078b61713d48 (diff) | |
download | legacywolf-c2ebaa3a942180370e9318661ceacf4bae55560c.tar.gz legacywolf-c2ebaa3a942180370e9318661ceacf4bae55560c.zip |
Fix bug in BootstrapLoader
reported to https://github.com/xiaoxiaoflood/firefox-scripts/issues/115
> I just found that for my legacy addon after restart it some of it
> function calls that initiated by timer or observer callback are
> running in a sandbox context of the last startup which is different
> from current one. And this cause malfunctions for my addon.
see also: https://github.com/xiaoxiaoflood/firefox-scripts/commit/291bebc4f2edc919dd273f2cecbbfda61e157695
Diffstat (limited to 'legacy/BootstrapLoader.jsm')
-rw-r--r-- | legacy/BootstrapLoader.jsm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/BootstrapLoader.jsm b/legacy/BootstrapLoader.jsm index d2a4598..cd7b64c 100644 --- a/legacy/BootstrapLoader.jsm +++ b/legacy/BootstrapLoader.jsm @@ -318,8 +318,8 @@ var BootstrapLoader = { } function findMethod(name) { - if (sandbox.name) { - return sandbox.name; + if (sandbox[name]) { + return sandbox[name]; } try { |