Bug 1800641 - Part 8: Add LoadContextBase* parameter to ScriptLoadRequest methods which is going to be moved to LoadedScriptDelegate. r=nbp

Depends on D197845

Differential Revision: https://phabricator.services.mozilla.com/D197846
This commit is contained in:
Tooru Fujisawa
2024-01-08 14:57:38 +00:00
parent 9b4d6d328e
commit ad3f8f8a06
12 changed files with 25 additions and 16 deletions

View File

@@ -195,7 +195,8 @@ bool ScriptLoadRequest::IsMarkedForBytecodeEncoding() const {
}
nsresult ScriptLoadRequest::GetScriptSource(JSContext* aCx,
MaybeSourceText* aMaybeSource) {
MaybeSourceText* aMaybeSource,
LoadContextBase* aLoadContext) {
// If there's no script text, we try to get it from the element
if (HasScriptLoadContext() && GetScriptLoadContext()->mIsInline) {
nsAutoString inlineData;