summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2023-05-02 10:44:02 -0500
committerBrian Smith <brian@dbsoft.org>2023-05-02 10:44:02 -0500
commitc29f841bdc4fc6cd83e015388f7d2ddaee05acc2 (patch)
treec8ad4d1982a0ae02fee3e601ada3dd7642ba7525 /dom
parent741ecee75afa2c44c478ec161808560b6154368c (diff)
downloaduxp-c29f841bdc4fc6cd83e015388f7d2ddaee05acc2.tar.gz
Issue #1691 - Follow-up: Fix videojs and potentially other problems.
When rewriting the ExecutionContext code in ScriptLoader I accidentally removed some required code.
Diffstat (limited to 'dom')
-rw-r--r--dom/script/ScriptLoader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp
index e43803e7c8..523e34af42 100644
--- a/dom/script/ScriptLoader.cpp
+++ b/dom/script/ScriptLoader.cpp
@@ -2342,6 +2342,9 @@ ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest)
FinishDynamicImport(cx, request, rv);
}
} else {
+ // Update our current script.
+ AutoCurrentScriptUpdater scriptUpdater(this, aRequest->Element());
+
JS::CompileOptions options(cx);
rv = FillCompileOptionsForRequest(aes, aRequest, global, &options);