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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame-post.html

Issue 2225383003: Origin header should be preserved in http requests made via OpenURL code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update a comment in FlagExpectations/site-per-process to match bug title. Created 4 years, 4 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 The test verifies that a form with target="crossSiteFrame" works fine 3 The test verifies that a form with target="crossSiteFrame" works fine
4 (especially in presence of out-of-process-iframes, aka OOPIFs, aka 4 (especially in presence of out-of-process-iframes, aka OOPIFs, aka
5 blink::RemoteFrames which are present in --site-per-process mode). 5 blink::RemoteFrames which are present in --site-per-process mode).
6 6
7 The test finishes successfully, if form-target.pl ends up calling 7 The test finishes successfully, if form-target.pl ends up calling
8 testRunner.notifyDone() after main frame calls testRuner.waitUntilDone 8 testRunner.notifyDone() after main frame calls testRuner.waitUntilDone
9 and submits the form. Expected test output helps verify that the 9 and submits the form. Expected test output helps verify that the
10 correct HTTP method was used and that test field's value from the form 10 correct HTTP method was used and that test field's value from the form
11 was propagated correctly. 11 was propagated correctly.
12 --> 12 -->
13 <html> 13 <html>
14 <script> 14 <script>
15 if (window.testRunner) { 15 if (window.testRunner) {
16 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
17 testRunner.dumpChildFramesAsText(); 17 testRunner.dumpChildFramesAsText();
18 } 18 }
19 19
20 function onLoad() { 20 function onLoad() {
21 if (window.testRunner) 21 if (window.testRunner)
22 testRunner.waitUntilDone(); 22 testRunner.waitUntilDone();
23 document.forms[0].submit(); 23 document.forms[0].submit();
24 } 24 }
25 </script> 25 </script>
26 <body onload="onLoad();"> 26 <body onload="onLoad();">
27 <form 27 <form
28 method="POST" 28 method="POST"
29 action="https://localhost:8443/navigation/resources/form-target.pl" 29 action="http://localhost:8080/navigation/resources/form-target.pl"
30 target="cross-site-frame"> 30 target="cross-site-frame">
31 Test field: 31 Test field:
32 <input name="test-field" type="text" value="test-value"> 32 <input name="test-field" type="text" value="test-value">
33 <input type="submit" value="Submit"> 33 <input type="submit" value="Submit">
34 </form> 34 </form>
35 <iframe 35 <iframe
36 name="cross-site-frame" 36 name="cross-site-frame"
37 src="https://localhost:8443/navigation/resources/form-target.pl"></iframe> 37 src="http://localhost:8080/navigation/resources/otherpage.html"></iframe>
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698