diff options
author | Moonchild <moonchild@palemoon.org> | 2020-08-25 07:06:43 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-25 07:06:43 +0000 |
commit | b78f53ffb09a6aae6dbdc069c7cdd42d11b5eed2 (patch) | |
tree | e4c6248559f4fe559cfe32df5ccf81a3bdcb47ab /dom/base/nsIDocument.h | |
parent | 8b397a63af13f7dfc127b1105f33cd652b2f1f6d (diff) | |
download | uxp-b78f53ffb09a6aae6dbdc069c7cdd42d11b5eed2.tar.gz |
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.
Diffstat (limited to 'dom/base/nsIDocument.h')
-rw-r--r-- | dom/base/nsIDocument.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/base/nsIDocument.h b/dom/base/nsIDocument.h index 33aac3a3d6..21cd0aaf7c 100644 --- a/dom/base/nsIDocument.h +++ b/dom/base/nsIDocument.h @@ -2851,6 +2851,8 @@ public: return mIsWebComponentsEnabled; } + bool ModuleScriptsEnabled(); + protected: bool GetUseCounter(mozilla::UseCounter aUseCounter) { |