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

Side by Side Diff: content/test/data/site_isolation/subframe_resources.html

Issue 2655393004: Make ResourceScheduler work in OOPIF (Closed)
Patch Set: Add tests Created 3 years, 10 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
OLDNEW
(Empty)
1 <body>
2 <p>Load a bunch of videos.
3 <script>
4 var url = new URL(location);
5 var subresourceUrl = url.searchParams.get('url');
6 var numSubresources = parseInt(url.searchParams.get('numSubresources'), 10);
7
8 var numError = 0;
9 function onVideoDone() {
10 numError++;
nasko 2017/01/31 15:50:34 Do we know this was called due to an error?
Charlie Harrison 2017/01/31 20:19:32 No this is a holdover. I think this var should be
11 if (numError == numSubresources)
12 parent.postMessage('loaded', '*');
13 }
14
15 for (var i = 0; i < numSubresources; i++) {
16 var video = document.createElement('video');
17 video.src = subresourceUrl + "?" + i;
18 video.onerror = onVideoDone;
19 video.onload = onVideoDone;
20 document.body.appendChild(video);
21 }
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698