1
0
Fork 0
firefox/docshell/test/browser/file_bug1691153.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

27 lines
592 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>bug 1691153</title>
</head>
<body>
<h1>bug 1691153</h1>
<script>
function toBlobURL(data, mimeType) {
return URL.createObjectURL(
new Blob([data], {
type: mimeType,
})
);
}
// closing script element literal split up to not end the parent script element
let testurl = toBlobURL("<body></body>", "text/html");
addEventListener("message", event => {
if (event.data == "getblob") {
postMessage({ bloburl: testurl }, "*");
}
});
// the blob URL should have a content principal
</script>
</body>
</html>