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

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

Issue 2655393004: Make ResourceScheduler work in OOPIF (Closed)
Patch Set: Make ResourceScheduler work in OOPIF 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 numDone = 0;
9 function onVideoDone() {
10 numDone++;
11 if (numDone == 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/test/data/site_isolation/subframes_with_resources.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698