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

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

Issue 1999573003: OOPIFs: Fixing submitting forms targeting a remote frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@form-target-is-cross-site-frame
Patch Set: Added a TODO for investigating if remote and local frames can be handled uniformly. Created 4 years, 6 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 <!--
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698