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

Side by Side Diff: LayoutTests/http/tests/misc/resources/redirect-to-external-url-iframe.html

Issue 14264012: Create errors (especially cancellation errors) internally to WebCore, rather (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698