OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script> | |
4 | |
5 if (window.testRunner) | |
6 testRunner.setCustomPolicyDelegate(true, true); | |
7 | |
8 function runTest() | |
9 { | |
10 var link = document.getElementById('testlink'); | |
11 var clickEvent = document.createEvent('MouseEvents'); | |
12 clickEvent.initEvent('click', false, true); | |
13 link.dispatchEvent(clickEvent); | |
14 | |
15 if (window.testRunner) | |
16 testRunner.notifyDone(); | |
17 } | |
18 | |
19 </script> | |
20 | |
21 <body onload="runTest();"> | |
22 This is a page with a link in it. When the link it clicked it will navigate to
another page. That page redirects to an externally handled URL.<br> | |
23 The policy delegate should be asked about the initial navigation and the redirec
t.<br> | |
24 <a id="testlink" href="redirect-to-external-url.php">The kids love this one</a> | |
25 </body> | |
26 </html> | |
OLD | NEW |