diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-08-30 22:10:17 -0400 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-05 18:45:45 +0000 |
commit | 9c515323ff6cc0dc42b9ee64397f297b7566d0a4 (patch) | |
tree | d810127ed7385efe0defd15b9da1c770663fa541 /parser/html/nsHtml5SpeculativeLoad.cpp | |
parent | c2b91aaf8cbb8f263bb335d4e6b8c37de72cfc14 (diff) | |
download | UXP-9c515323ff6cc0dc42b9ee64397f297b7566d0a4.tar UXP-9c515323ff6cc0dc42b9ee64397f297b7566d0a4.tar.gz UXP-9c515323ff6cc0dc42b9ee64397f297b7566d0a4.tar.lz UXP-9c515323ff6cc0dc42b9ee64397f297b7566d0a4.tar.xz UXP-9c515323ff6cc0dc42b9ee64397f297b7566d0a4.zip |
Issue #618 - Don't preload nomodule scripts when modules are enabled (uplift)
Diffstat (limited to 'parser/html/nsHtml5SpeculativeLoad.cpp')
-rw-r--r-- | parser/html/nsHtml5SpeculativeLoad.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/parser/html/nsHtml5SpeculativeLoad.cpp b/parser/html/nsHtml5SpeculativeLoad.cpp index 7bae0699f..35c11b739 100644 --- a/parser/html/nsHtml5SpeculativeLoad.cpp +++ b/parser/html/nsHtml5SpeculativeLoad.cpp @@ -52,17 +52,27 @@ nsHtml5SpeculativeLoad::Perform(nsHtml5TreeOpExecutor* aExecutor) case eSpeculativeLoadScript: aExecutor->PreloadScript(mUrl, mCharset, mTypeOrCharsetSourceOrDocumentMode, mCrossOrigin, mIntegrity, false, - mIsAsync, mIsDefer); + mIsAsync, mIsDefer, false); break; case eSpeculativeLoadScriptFromHead: aExecutor->PreloadScript(mUrl, mCharset, mTypeOrCharsetSourceOrDocumentMode, mCrossOrigin, mIntegrity, true, - mIsAsync, mIsDefer); + mIsAsync, mIsDefer, false); + break; + case eSpeculativeLoadNoModuleScript: + aExecutor->PreloadScript(mUrl, mCharset, mTypeOrCharsetSourceOrDocumentMode, + mCrossOrigin, mIntegrity, false, + mIsAsync, mIsDefer, true); + break; + case eSpeculativeLoadNoModuleScriptFromHead: + aExecutor->PreloadScript(mUrl, mCharset, mTypeOrCharsetSourceOrDocumentMode, + mCrossOrigin, mIntegrity, true, + mIsAsync, mIsDefer, true); break; case eSpeculativeLoadStyle: aExecutor->PreloadStyle(mUrl, mCharset, mCrossOrigin, mIntegrity); break; - case eSpeculativeLoadManifest: + case eSpeculativeLoadManifest: aExecutor->ProcessOfflineManifest(mUrl); break; case eSpeculativeLoadSetDocumentCharset: { |