| Index: chrome/test/data/predictor/predictor_cross_site_subframe_nav.html
|
| diff --git a/chrome/test/data/predictor/predictor_cross_site_subframe_nav.html b/chrome/test/data/predictor/predictor_cross_site_subframe_nav.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7fec52e456d4da7caf7c9d2617169f8c6c0da0b8
|
| --- /dev/null
|
| +++ b/chrome/test/data/predictor/predictor_cross_site_subframe_nav.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<p>
|
| +This page loads an empty cross-site iframe, and exposes a method to navigate it.
|
| +</p>
|
| +<script>
|
| +function getFrameDocument() {
|
| + return window.frames['iframe'].contentWindow.document;
|
| +}
|
| +
|
| +function notifyLoaded() {
|
| + window.domAutomationController.send(true);
|
| +}
|
| +
|
| +function navigateSubframe(url) {
|
| + var iframe = document.createElement('iframe');
|
| + iframe.onload = notifyLoaded;
|
| + iframe.src = url;
|
| + document.body.appendChild(iframe);
|
| +}
|
| +</script>
|
|
|