2 <!-- This file is meant to test how many times the WebFrameClient will be
3 notified of a change in the current manifest URL associated with the document. -->
6 <link rel='manifest' href=''
>
8 <link rel='manifest foo'
>
9 <link rel='manifest' crossorigin foo bar
>
10 <!-- 4 times (= 4) -->
17 function createLink(href
, rel
) {
18 var link
= document
.createElement('link');
23 var links
= document
.getElementsByTagName('link');
24 var link
= document
.createElement('link');
26 document
.head
.appendChild(createLink('foo.json', 'manifest'));
27 document
.head
.appendChild(createLink('foo.json', ''));
28 document
.head
.appendChild(createLink('foo.json', 'manifest'));
29 document
.head
.insertBefore(createLink('foo.json', 'manifest'), links
[0]);
32 links
[0].crossOrigin
= 'use-credentials';
34 links
[0].type
= 'image/gif';
37 links
[0].href
= 'bar.json';
38 links
[0].rel
= 'blah';
39 links
[0].rel
= 'manifest';
42 document
.head
.removeChild(links
[0]);