| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <!-- |
| 3 The test verifies that a form with target="crossSiteFrame" works fine |
| 4 (especially in presence of out-of-process-iframes, aka OOPIFs, aka |
| 5 blink::RemoteFrames which are present in --site-per-process mode). |
| 6 |
| 7 The test finishes successfully, if form-target.pl ends up calling |
| 8 testRunner.notifyDone() after main frame calls testRuner.waitUntilDone |
| 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 |
| 11 was propagated correctly. |
| 12 --> |
| 13 <html> |
| 14 <script> |
| 15 if (window.testRunner) { |
| 16 testRunner.dumpAsText(); |
| 17 testRunner.dumpChildFramesAsText(); |
| 18 } |
| 19 |
| 20 function onLoad() { |
| 21 if (window.testRunner) |
| 22 testRunner.waitUntilDone(); |
| 23 document.forms[0].submit(); |
| 24 } |
| 25 </script> |
| 26 <body onload="onLoad();"> |
| 27 <form |
| 28 method="POST" |
| 29 action="https://localhost:8443/navigation/resources/form-target.pl" |
| 30 target="cross-site-frame"> |
| 31 Test field: |
| 32 <input name="test-field" type="text" value="test-value"> |
| 33 <input type="submit" value="Submit"> |
| 34 </form> |
| 35 <iframe |
| 36 name="cross-site-frame" |
| 37 src="https://localhost:8443/navigation/resources/form-target.pl"></iframe> |
| 38 </body> |
| 39 </html> |
| OLD | NEW |