From b78f53ffb09a6aae6dbdc069c7cdd42d11b5eed2 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Tue, 25 Aug 2020 07:06:43 +0000 Subject: Issue #618 - (async) Implement async attribute for inline module scripts. This commit does several things: - Moves the pref check from ScriptLoader to ns[I]Document so it can be called on the document. - Changes the atrribute freezing function to a better name that takes the document as a parameter. - Sets the proper async/defer attributes on HTML script elements based on keywords and whether they are module scripts or not. --- dom/svg/SVGScriptElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dom/svg/SVGScriptElement.cpp') diff --git a/dom/svg/SVGScriptElement.cpp b/dom/svg/SVGScriptElement.cpp index 7adce2f46..9a4afb13a 100644 --- a/dom/svg/SVGScriptElement.cpp +++ b/dom/svg/SVGScriptElement.cpp @@ -137,7 +137,7 @@ SVGScriptElement::GetScriptCharset(nsAString& charset) } void -SVGScriptElement::FreezeUriAsyncDefer() +SVGScriptElement::FreezeExecutionAttrs(nsIDocument* aOwnerDoc) { if (mFrozen) { return; -- cgit v1.2.3