mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Issue warning to devtools when module scripts in use.
This commit is contained in:
parent
b3b72cb9e3
commit
55eb34b8a9
2 changed files with 30 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue