diff options
author | Moonchild <moonchild@palemoon.org> | 2020-08-27 15:44:53 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-08 11:04:36 +0000 |
commit | ddc43bf9d7009a5d3b2ff84688450540b8eff84e (patch) | |
tree | c1599d4eb1a4d087871341b4801529c75d452c6c /dom/script/ScriptLoader.h | |
parent | 5819a1a5256e356caf4c38937610ac9e29e1c701 (diff) | |
download | UXP-ddc43bf9d7009a5d3b2ff84688450540b8eff84e.tar UXP-ddc43bf9d7009a5d3b2ff84688450540b8eff84e.tar.gz UXP-ddc43bf9d7009a5d3b2ff84688450540b8eff84e.tar.lz UXP-ddc43bf9d7009a5d3b2ff84688450540b8eff84e.tar.xz UXP-ddc43bf9d7009a5d3b2ff84688450540b8eff84e.zip |
Issue #618 - Implement preloading of module scripts.
This hooks up module scripts to the existing preload mechanism.
Diffstat (limited to 'dom/script/ScriptLoader.h')
-rw-r--r-- | dom/script/ScriptLoader.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/script/ScriptLoader.h b/dom/script/ScriptLoader.h index 20e76970f..2c5b683e7 100644 --- a/dom/script/ScriptLoader.h +++ b/dom/script/ScriptLoader.h @@ -173,6 +173,12 @@ public: return mScriptMode == ScriptMode::eAsync; } + virtual bool IsTopLevel() const + { + // Classic scripts are always top level. + return true; + } + void MaybeCancelOffThreadScript(); using super::getNext; |