mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Issue #618 - Split SRI verification out from OnStreamComplete.
This commit is contained in:
parent
7e6cd5def1
commit
6c7ac2b844
2 changed files with 35 additions and 19 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue