Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /workers/interfaces/WorkerUtils/navigator/008.worker.html - WPT Dashboard Interop Dashboard
"use strict";
importScripts("/resources/testharness.js");
test(function () {
for (const x in navigator) {
// skip functions, as they are settable
if (typeof navigator[x] === "function") continue;
assert_throws_js(TypeError, () => {
navigator[x] = "";
}, `navigator.${x} is read-only`);
}
}, "navigator properties are read-only");
done();