Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/cookies/same-site/popup-cross-site-post.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/cookies/same-site/popup-cross-site-post.html b/third_party/WebKit/LayoutTests/http/tests/cookies/same-site/popup-cross-site-post.html |
| index ec32a8947c3e644eb80c6a169c8822996ce7d433..cd34c8259919815bbc5471f22e3d91327a4003b3 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/cookies/same-site/popup-cross-site-post.html |
| +++ b/third_party/WebKit/LayoutTests/http/tests/cookies/same-site/popup-cross-site-post.html |
| @@ -2,6 +2,7 @@ |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src="/cookies/resources/testharness-helpers.js"></script> |
| +<body></body> |
|
iclelland
2016/08/23 17:46:22
Is this required? I think that the body element wi
lunalu1
2016/08/24 15:24:42
Yes. Otherwise I will get the error "Cannot read p
|
| <script> |
| // Set cookies on ORIGINAL_HOST, then move ourselves to TEST_ROOT so |
| // we can verify cross-origin behavior. |
| @@ -29,6 +30,7 @@ if (window.location.hostname == "127.0.0.1") { |
| f.method = "POST"; |
| f.target = "_blank" |
| window.onload = t.step_func(f.submit.bind(f)); |
| + document.body.appendChild(f); |
| }, "'" + ORIGINAL_HOST + "' is not same-site with '" + TEST_HOST + "', so samesite cookies are not sent via POST."); |
| } |
| </script> |