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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/opened-document-security-origin-resets-on-navigation.html

Issue 1676793003: Revert of Don't set the origin twice when navigating for javascript: URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 <script>
6 var jsTestIsAsync = true;
7 function runTest() {
8 var frame = document.body.appendChild(document.createElement("iframe"));
9 frame.src = "http://localhost:8000/security/resources/opened-document-security -origin-resets-on-navigation-frame.html";
10 frame.onload = function () {
11 frame.onload = null;
12 var blob = new Blob(["<script>(" + function () {
13 frame = document.documentElement.appendChild(document.createElement("ifram e"));
14 frame.contentWindow.setTimeout("parent.document.open()", 0);
15 setTimeout(function () {
16 location = "javascript:'<script>setTimeout(top.finishJSTest, 0); paren t.eval(\"alert(location)\"); top.testFailed(\"context security origin was not up dated!\");</scr" + "ipt>'" }, 0);
17 } + "())</sc" + "ript>"], {type: "text/html"});
18 frame.contentWindow[0].location = URL.createObjectURL(blob);
19 }
20 }
21 </script>
22 </head>
23 <body onload="runTest()">
24 </body>
25 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/opened-document-security-origin-resets-on-navigation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698