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

Side by Side Diff: LayoutTests/fast/loader/stateobjects/pushstate-in-data-url-denied.html

Issue 6911011: Merge 85436 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/loader/stateobjects/pushstate-in-data-url-denied-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 <script> 1 <script>
2 if (window.layoutTestController) { 2 if (window.layoutTestController) {
3 layoutTestController.dumpAsText(); 3 layoutTestController.dumpAsText();
4 layoutTestController.waitUntilDone(); 4 layoutTestController.waitUntilDone();
5 } 5 }
6 window.onload = function() { 6 window.onload = function() {
7 window.location = 'data:text/html,' + 7 window.location = 'data:text/html,' +
8 '%3Cscript%3E' + 8 '%3Cscript%3E' +
9 'try{' + 9 'try{' +
10 'history.pushState({},"","data:");' + 10 'history.pushState({},"","data:");' +
11 'document.write("FAIL data URL was manipula via pushState.");' + 11 'document.write("FAIL data URL was manipula via pushState.");' +
12 '} catch(e) {' + 12 '} catch(e) {' +
13 'document.write("PASS: data URLs cannot be manipulated via pushState."); ' + 13 'document.write("PASS: data URLs cannot be manipulated via pushState."); ' +
14 '}' + 14 '}' +
15 'if (window.layoutTestController)' + 15 'if (window.layoutTestController)' +
16 'layoutTestController.notifyDone();' + 16 'layoutTestController.notifyDone();' +
17 '%3C/script%3E'; 17 '%3C/script%3E';
18 } 18 }
19 </script> 19 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/loader/stateobjects/pushstate-in-data-url-denied-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698