diff options
author | Moonchild <moonchild@palemoon.org> | 2020-08-25 05:52:40 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-25 05:52:40 +0000 |
commit | 8b397a63af13f7dfc127b1105f33cd652b2f1f6d (patch) | |
tree | ae71c7d3ff76ba89eab6e4650871d9a17e448e9a /dom/script/ModuleLoadRequest.cpp | |
parent | 2ca1cbe2f5e138e7b12b156296a21e47ce0aaedf (diff) | |
download | UXP-8b397a63af13f7dfc127b1105f33cd652b2f1f6d.tar UXP-8b397a63af13f7dfc127b1105f33cd652b2f1f6d.tar.gz UXP-8b397a63af13f7dfc127b1105f33cd652b2f1f6d.tar.lz UXP-8b397a63af13f7dfc127b1105f33cd652b2f1f6d.tar.xz UXP-8b397a63af13f7dfc127b1105f33cd652b2f1f6d.zip |
Issue #618 - (async) Keep track of script modes in a single mode state.
This simplifies handling of combinations of async/defer by assigning one and
only one state to scripts.
If async then always async > if defer or module then defer > otherwise blocking.
Diffstat (limited to 'dom/script/ModuleLoadRequest.cpp')
-rw-r--r-- | dom/script/ModuleLoadRequest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dom/script/ModuleLoadRequest.cpp b/dom/script/ModuleLoadRequest.cpp index 746a355b5..743f30fb9 100644 --- a/dom/script/ModuleLoadRequest.cpp +++ b/dom/script/ModuleLoadRequest.cpp @@ -63,6 +63,7 @@ ModuleLoadRequest::ModuleLoadRequest(nsIURI* aURI, MOZ_ASSERT(mVisitedSet->Contains(aURI)); mIsInline = false; + mScriptMode = aParent->mScriptMode; } void ModuleLoadRequest::Cancel() |