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

Side by Side Diff: content/test/data/site_isolation/subframes_with_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
« no previous file with comments | « content/test/data/site_isolation/subframe_resources.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <p> Load a bunch of frames containing videos.
2 <script>
3 var url = new URL(location);
4 var urls = url.searchParams.get('urls').split(',');
5 var numFrames = urls.length;
6 var numSubresources = parseInt(url.searchParams.get('numSubresources'), 10);
7 function createFrames() {
8 for (var i = 0; i < numFrames; i++) {
9 var frame = document.createElement('iframe');
10 frame.src =
11 "/cross-site/example.com/site_isolation/subframe_resources.html?url=" +
12 urls[i] + "&numSubresources=" + numSubresources;
13 document.body.appendChild(frame);
14 }
15 }
16
17 // Wait for |numFrame| messages. Each message is received when a given frame
18 // finishes (errors/completes) all of its subresources.
19 var numMessages = 0;
20 window.addEventListener('message', function(e) {
21 numMessages++;
22 if (numMessages == numFrames)
23 window.domAutomationController.send(true);
24 });
25 </script>
OLDNEW
« no previous file with comments | « content/test/data/site_isolation/subframe_resources.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698