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

Side by Side Diff: LayoutTests/http/tests/security/no-javascript-refresh.php

Issue 18865003: Do not allow HTTP refresh headers to refresh to javascript: URLs. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/no-javascript-refresh-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?php 1 <?php
2 header('HTTP/1.0 200 OK'); 2 header('HTTP/1.0 200 OK');
3 header('Content-type: text/html'); 3 header('Content-type: text/html');
4 header('Refresh: 0;URL=javascript:window.top.location="about:blank"'); 4 header('Refresh: 0;URL=javascript:window.top.location="about:blank"');
5 ?> 5 ?>
6 6 <!DOCTYPE html>
7 <head>
8 <meta http-equiv='refresh' content='0;URL=javascript:window.top.location="about: blank"'/>
9 </head>
10 <body> 7 <body>
11 This is the viewsource iframe. 8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
11 </script>
12 This it the content that appears in place of a refresh.
12 </body> 13 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/no-javascript-refresh-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698