summaryrefslogtreecommitdiffstats
path: root/dom/script/ScriptLoader.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-08 10:50:53 +0000
committerMoonchild <moonchild@palemoon.org>2020-08-30 09:32:52 +0000
commit2f145b6eda95c08a76711f0393e4d9ebe13a5f92 (patch)
treeb2a00ced844cbe2eee6eb81ed585894d0c550d10 /dom/script/ScriptLoader.h
parent06a092d08ef5c20306d5c0b9a5f0bfd14ae28cad (diff)
downloadUXP-2f145b6eda95c08a76711f0393e4d9ebe13a5f92.tar
UXP-2f145b6eda95c08a76711f0393e4d9ebe13a5f92.tar.gz
UXP-2f145b6eda95c08a76711f0393e4d9ebe13a5f92.tar.lz
UXP-2f145b6eda95c08a76711f0393e4d9ebe13a5f92.tar.xz
UXP-2f145b6eda95c08a76711f0393e4d9ebe13a5f92.zip
Issue #618 - Fix error events fired when loading JS module dependencies fail
When module dependencies fail, don't spam with errors for each import; only fire the error event once. Ref: BZ 1421259
Diffstat (limited to 'dom/script/ScriptLoader.h')
-rw-r--r--dom/script/ScriptLoader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/script/ScriptLoader.h b/dom/script/ScriptLoader.h
index e6b75bf3b..b07dd4ec6 100644
--- a/dom/script/ScriptLoader.h
+++ b/dom/script/ScriptLoader.h
@@ -100,7 +100,8 @@ public:
void FireScriptAvailable(nsresult aResult)
{
- mElement->ScriptAvailable(aResult, mElement, mIsInline, mURI, mLineNo);
+ bool isInlineClassicScript = mIsInline && !IsModuleRequest();
+ mElement->ScriptAvailable(aResult, mElement, isInlineClassicScript, mURI, mLineNo);
}
void FireScriptEvaluated(nsresult aResult)
{