diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-08 10:50:53 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-30 09:32:52 +0000 |
commit | 2f145b6eda95c08a76711f0393e4d9ebe13a5f92 (patch) | |
tree | b2a00ced844cbe2eee6eb81ed585894d0c550d10 /dom/script/nsIScriptLoaderObserver.idl | |
parent | 06a092d08ef5c20306d5c0b9a5f0bfd14ae28cad (diff) | |
download | UXP-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/nsIScriptLoaderObserver.idl')
-rw-r--r-- | dom/script/nsIScriptLoaderObserver.idl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dom/script/nsIScriptLoaderObserver.idl b/dom/script/nsIScriptLoaderObserver.idl index ed7196525..880738360 100644 --- a/dom/script/nsIScriptLoaderObserver.idl +++ b/dom/script/nsIScriptLoaderObserver.idl @@ -20,15 +20,16 @@ interface nsIScriptLoaderObserver : nsISupports { * a script. If this is a failure code, script evaluation * will not occur. * @param aElement The element being processed. - * @param aIsInline Is this an inline script or externally loaded? + * @param aIsInline Is this an inline classic script (as opposed to an + * externally loaded classic script or module script)? * @param aURI What is the URI of the script (the document URI if * it is inline). * @param aLineNo At what line does the script appear (generally 1 * if it is a loaded script). */ - void scriptAvailable(in nsresult aResult, + void scriptAvailable(in nsresult aResult, in nsIScriptElement aElement, - in boolean aIsInline, + in boolean aIsInlineClassicScript, in nsIURI aURI, in int32_t aLineNo); @@ -40,7 +41,7 @@ interface nsIScriptLoaderObserver : nsISupports { * @param aElement The element being processed. * @param aIsInline Is this an inline script or externally loaded? */ - void scriptEvaluated(in nsresult aResult, + void scriptEvaluated(in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline); |