From c29f841bdc4fc6cd83e015388f7d2ddaee05acc2 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Tue, 2 May 2023 10:44:02 -0500 Subject: Issue #1691 - Follow-up: Fix videojs and potentially other problems. When rewriting the ExecutionContext code in ScriptLoader I accidentally removed some required code. --- dom/script/ScriptLoader.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dom') 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); -- cgit v1.2.3