Bug 1421259 - Fix error events fired when loading JS module dependencies fail r=baku

This commit is contained in:
Jon Coppeard
2017-12-01 13:12:48 +00:00
parent e0633523be
commit 01fbc05c08
6 changed files with 16 additions and 16 deletions

View File

@@ -21,11 +21,11 @@ using namespace mozilla::dom;
NS_IMETHODIMP
ScriptElement::ScriptAvailable(nsresult aResult,
nsIScriptElement* aElement,
bool aIsInline,
bool aIsInlineClassicScript,
nsIURI* aURI,
int32_t aLineNo)
{
if (!aIsInline && NS_FAILED(aResult)) {
if (!aIsInlineClassicScript && NS_FAILED(aResult)) {
nsCOMPtr<nsIParser> parser = do_QueryReferent(mCreatorParser);
if (parser) {
parser->PushDefinedInsertionPoint();