diff options
author | Moonchild <moonchild@palemoon.org> | 2020-08-22 09:51:42 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-30 09:39:13 +0000 |
commit | 798c2ed4f8d1685df5ef53ea2fef09669d30ed36 (patch) | |
tree | a5ad132b41b4c29d416a715eb0959d02c8d9c181 /dom/script/ScriptLoader.h | |
parent | 767b637c838731f880adc92fb1e4b92bb5b591fd (diff) | |
download | UXP-798c2ed4f8d1685df5ef53ea2fef09669d30ed36.tar UXP-798c2ed4f8d1685df5ef53ea2fef09669d30ed36.tar.gz UXP-798c2ed4f8d1685df5ef53ea2fef09669d30ed36.tar.lz UXP-798c2ed4f8d1685df5ef53ea2fef09669d30ed36.tar.xz UXP-798c2ed4f8d1685df5ef53ea2fef09669d30ed36.zip |
Issue #618 - Split SRI verification out from OnStreamComplete.
Diffstat (limited to 'dom/script/ScriptLoader.h')
-rw-r--r-- | dom/script/ScriptLoader.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dom/script/ScriptLoader.h b/dom/script/ScriptLoader.h index ed57de7c8..46ed4e120 100644 --- a/dom/script/ScriptLoader.h +++ b/dom/script/ScriptLoader.h @@ -407,8 +407,6 @@ public: mozilla::Vector<char16_t> &aString, mozilla::dom::SRICheckDataVerifier* aSRIDataVerifier); - void HandleLoadError(ScriptLoadRequest *aRequest, nsresult aResult); - /** * Processes any pending requests that are ready for processing. */ @@ -510,6 +508,8 @@ private: nsresult StartLoad(ScriptLoadRequest *aRequest, const nsAString &aType, bool aScriptFromHead); + void HandleLoadError(ScriptLoadRequest *aRequest, nsresult aResult); + /** * Process any pending requests asynchronously (i.e. off an event) if there * are any. Note that this is a no-op if there aren't any currently pending @@ -544,6 +544,11 @@ private: return mEnabled && !mBlockerCount; } + nsresult VerifySRI(ScriptLoadRequest *aRequest, + nsIIncrementalStreamLoader* aLoader, + nsresult aSRIStatus, + SRICheckDataVerifier* aSRIDataVerifier) const; + nsresult AttemptAsyncScriptCompile(ScriptLoadRequest* aRequest); nsresult ProcessRequest(ScriptLoadRequest* aRequest); nsresult CompileOffThreadOrProcessRequest(ScriptLoadRequest* aRequest); |