Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/security/test/sri/mochitest.toml
<!DOCTYPE HTML>
<!-- Any copyright is dedicated to the Public Domain.
<html>
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
SimpleTest.waitForExplicitFinish();
window.onload = function() {
const o1 = document.createElement('script');
document.documentElement.appendChild(o1);
o1.integrity = "\?\-=";
o1.src = "#b";
ok(true, "Invalid integrity did not crash the browser");
SimpleTest.finish();
}
</script>
</head>
<body>
</body>
</html>