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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/test/data/site_isolation/subframe_resources.html
diff --git a/content/test/data/site_isolation/subframe_resources.html b/content/test/data/site_isolation/subframe_resources.html
new file mode 100644
index 0000000000000000000000000000000000000000..9ea40ec713bb2820f9f7cc1021dd9e30ddfd2f8f
--- /dev/null
+++ b/content/test/data/site_isolation/subframe_resources.html
@@ -0,0 +1,22 @@
+<body>
+<p>Load a bunch of videos.
+<script>
+var url = new URL(location);
+var subresourceUrl = url.searchParams.get('url');
+var numSubresources = parseInt(url.searchParams.get('numSubresources'), 10);
+
+var numDone = 0;
+function onVideoDone() {
+ numDone++;
+ if (numDone == numSubresources)
+ parent.postMessage('loaded', '*');
+}
+
+for (var i = 0; i < numSubresources; i++) {
+ var video = document.createElement('video');
+ video.src = subresourceUrl + "?" + i;
+ video.onerror = onVideoDone;
+ video.onload = onVideoDone;
+ document.body.appendChild(video);
+}
+</script>
« 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