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

Side by Side Diff: chrome/test/data/predictor/predictor_cross_site_subframe_nav.html

Issue 1881463003: Add a browsertest suite for net predictor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a "forgetting" test + fix typo Created 4 years, 8 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 <!DOCTYPE html>
2 <p>
3 This page loads an empty cross-site iframe, and exposes a method to navigate it.
4 </p>
5 <script>
6 function getFrameDocument() {
7 return window.frames['iframe'].contentWindow.document;
8 }
9
10 var navigated = false;
11 function notifyLoaded() {
12 if (navigated) {
13 window.domAutomationController.send(true);
14 }
15 }
16
17 function navigateSubframe(url) {
18 navigated = true;
19 getFrameDocument().location.href = url;
20 }
21 </script>
22 <iframe id="iframe" src="" onload="notifyLoaded();"></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698