<!
DOCTYPE HTML>
<
html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1731940
-->
<
head>
<
meta charset=
"utf-8">
<
title>Test for Bug 1731940 - implement id member</
title>
<
script src=
"/tests/SimpleTest/SimpleTest.js"></
script>
<
link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
<
script src=
"common.js"></
script>
<
script>
/**
* Manifest id member
*
https://w3c.github.io/manifest/#id-member
**/
for (const type of typeTests) {
data.jsonText = JSON.stringify({
id: type,
});
const result = processor.process(data);
is(
result.id.toString(),
result.start_url.toString(),
`Expect non-string id to fall back to start_url: ${typeof type}.`
);
}
// Invalid URLs
const invalidURLs = [
"https://foo:65536",
"https://foo\u0000/",
"//invalid:65555",
"file:///passwords",
"about:blank",
"data:text/html,