Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: Source/web/tests/data/link-manifest-change.html

Issue 249633002: Detect <link rel='manifest'> and notify embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
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. -->
4 <html>
5 <head>
6 <link rel='manifest' href=''>
7 <link rel='manifest'>
8 <link rel='manifest foo'>
9 <link rel='manifest' crossorigin foo bar>
10 <!-- 4 times (= 4) -->
11 </head>
12 <body>
13 <link rel='manifest'>
14 <!-- 1 time (= 5) -->
15 </body>
16 <script>
17 function createLink(href, rel) {
18 var link = document.createElement('link');
19 link.href = href;
20 link.rel = rel;
21 return link;
22 }
23 var links = document.getElementsByTagName('link');
24 var link = document.createElement('link');
25
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]);
30 // 3 times (= 8)
31
32 links[0].crossOrigin = 'use-credentials';
33 links[0].media = '';
34 links[0].type = 'image/gif';
35 // 2 times (= 10)
36
37 links[0].href = 'bar.json';
38 links[0].rel = 'blah';
39 links[0].rel = 'manifest';
40 // 3 times (= 13)
41
42 document.head.removeChild(links[0]);
43 // 1 time (= 14)
44 </script>
45 </html>
OLDNEW
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698