aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlscriptelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlscriptelement.rs')
-rw-r--r--components/script/dom/htmlscriptelement.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs
index dfac55a6f66..fdeca285e30 100644
--- a/components/script/dom/htmlscriptelement.rs
+++ b/components/script/dom/htmlscriptelement.rs
@@ -559,6 +559,10 @@ impl HTMLScriptElement {
"{} is a module script. It should be fixed after #23545 landed.",
url.clone()
);
+ self.global().issue_page_warning(&format!(
+ "Module scripts are not supported; {} will not be executed.",
+ url.clone()
+ ));
},
}
} else {
@@ -578,6 +582,9 @@ impl HTMLScriptElement {
"{} is a module script. It should be fixed after #23545 landed.",
base_url.clone()
);
+ self.global().issue_page_warning(
+ "Module scripts are not supported; ignoring inline module script.",
+ );
return;
}