1
0
Fork 0
firefox/devtools/client/webconsole/test/browser/test-non-javascript-mime-worker.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

25 lines
967 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Console test for script with non-JavaScript MIME type</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script>
"use strict";
// Test new Worker
new Worker("https://example.com/browser/devtools/client/webconsole/test/browser/test-non-javascript-mime.js");
// Test importScripts
const source = `importScripts("https://example.com/browser/devtools/client/webconsole/" +
"test/browser/" +
"test-non-javascript-mime.js");`;
const url = URL.createObjectURL(new Blob([source], {type: "application/javascript"}));
new Worker(url);
</script>
</head>
<body>
<p>Web Console test for Worker and importScripts() inside Worker with non-JavaScript MIME type.</p>
</body>
</html>