Support integrity for module script

This commit is contained in:
CYBAI 2019-12-12 00:48:14 +09:00
parent f2007751dd
commit cfad32cffd
2 changed files with 6 additions and 0 deletions

View file

@ -582,6 +582,7 @@ impl HTMLScriptElement {
ModuleOwner::Window(Trusted::new(self)),
url.clone(),
Destination::Script,
integrity_metadata.to_owned(),
);
if !r#async && was_parser_inserted {