| Index: third_party/WebKit/LayoutTests/http/tests/navigation/form-with-enctype-targets-cross-site-frame.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame-no-referrer.html b/third_party/WebKit/LayoutTests/http/tests/navigation/form-with-enctype-targets-cross-site-frame.html
|
| similarity index 65%
|
| copy from third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame-no-referrer.html
|
| copy to third_party/WebKit/LayoutTests/http/tests/navigation/form-with-enctype-targets-cross-site-frame.html
|
| index d564b68b5074be3d2738d8e73f7c4a9ade490601..411f54e936fd69140aac8bba95c52816528540b3 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame-no-referrer.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/navigation/form-with-enctype-targets-cross-site-frame.html
|
| @@ -1,17 +1,26 @@
|
| <!DOCTYPE html>
|
| <!--
|
| -The test verifies that a form with target="crossSiteFrame" works fine
|
| +The test verifies that a form with target="crossSiteFrame" and
|
| +with enctype="multipart/form-data" works fine
|
| (especially in presence of out-of-process-iframes, aka OOPIFs, aka
|
| blink::RemoteFrames which are present in --site-per-process mode).
|
|
|
| The test finishes successfully, if form-target.pl ends up calling
|
| testRunner.notifyDone() after main frame calls testRuner.waitUntilDone
|
| and submits the form. Expected test output helps verify that the
|
| -correct HTTP method was used and that test field's value from the form
|
| -was propagated correctly.
|
| +correct HTTP headers were sent together with the HTTP POST request.
|
| +In particular, if wrong Content-Type header is send with the HTTP request,
|
| +then the field value will be garbled:
|
| +
|
| +- Expected:
|
| + test-field = test-value
|
| +
|
| +- Actual if no Content-Type is sent:
|
| + ------WebKitFormBoundaryxVEhq0cRaPT6heQg Content-Disposition: form-data =
|
| + name = "test-field" test-value ------WebKitFormBoundaryxVEhq0cRaPT6heQg--
|
| +
|
| -->
|
| <html>
|
| -<meta name="referrer" content="no-referrer">
|
| <script>
|
| if (window.testRunner) {
|
| testRunner.dumpAsText();
|
| @@ -27,6 +36,7 @@ was propagated correctly.
|
| <body onload="onLoad();">
|
| <form
|
| method="POST"
|
| + enctype="multipart/form-data"
|
| action="http://localhost:8080/navigation/resources/form-target.pl"
|
| target="cross-site-frame">
|
| Test field:
|
|
|