summaryrefslogtreecommitdiffstats
path: root/dom/html
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-08 11:01:01 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-08 11:01:01 +0000
commitb55d425b37b552e3fd5c781af6d9a172d0ce763c (patch)
tree2ecc2528720563be1ddfa02b637dcd8297dfd2ba /dom/html
parent1154e48843479efa00d81712cafcd9e520180030 (diff)
parentdf55ce90372c71ec9cb186677044aacc96c87187 (diff)
downloadUXP-b55d425b37b552e3fd5c781af6d9a172d0ce763c.tar
UXP-b55d425b37b552e3fd5c781af6d9a172d0ce763c.tar.gz
UXP-b55d425b37b552e3fd5c781af6d9a172d0ce763c.tar.lz
UXP-b55d425b37b552e3fd5c781af6d9a172d0ce763c.tar.xz
UXP-b55d425b37b552e3fd5c781af6d9a172d0ce763c.zip
Merge branch 'es-modules-work'
Diffstat (limited to 'dom/html')
-rw-r--r--dom/html/nsHTMLDocument.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/html/nsHTMLDocument.cpp b/dom/html/nsHTMLDocument.cpp
index f3cb096b9..9d0b2c9bb 100644
--- a/dom/html/nsHTMLDocument.cpp
+++ b/dom/html/nsHTMLDocument.cpp
@@ -1471,6 +1471,9 @@ nsHTMLDocument::Open(JSContext* cx,
// document again otherwise the document could have a non-zero onload block
// count without the onload blocker request being in the loadgroup.
EnsureOnloadBlocker();
+
+ // Throw away loaded modules created for the previous global.
+ ScriptLoader()->ClearModuleMap();
}
// Step 8 - Clear all event listeners out of our DOM tree