Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / stateobjects / pushstate-in-data-url-denied.html
blob7ccbec0872ff0337c1219d5223371d788dd1e86b
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpAsText();
4 testRunner.waitUntilDone();
6 window.onload = function() {
7 window.location = 'data:text/html,' +
8 '%3Cscript%3E' +
9 'try{' +
10 'history.pushState({},"","data:");' +
11 'document.write("FAIL data URL was manipula via pushState.");' +
12 '} catch(e) {' +
13 'document.write("PASS: data URLs cannot be manipulated via pushState.");' +
14 '}' +
15 'if (window.testRunner)' +
16 'testRunner.notifyDone();' +
17 '%3C/script%3E';
19 </script>