| Index: third_party/WebKit/LayoutTests/fast/frames/form-submission-early-return-for-sandboxed-iframes.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/frames/form-submission-early-return-for-sandboxed-iframes.html b/third_party/WebKit/LayoutTests/fast/frames/form-submission-early-return-for-sandboxed-iframes.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fdf20646575f6d9d07c4205c96dc7d86fd8a04af
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/frames/form-submission-early-return-for-sandboxed-iframes.html
|
| @@ -0,0 +1,14 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<iframe id="iframe1" sandbox="allow-scripts allow-same-origin" src="resources/sandboxed-iframe-src.html"></iframe>
|
| +<script>
|
| +var validityChecked = false;
|
| +function setInvalid() { validityChecked = true; }
|
| +test (function() {
|
| + document.getElementById('iframe1').onload = function() {
|
| + window.frames['iframe1'].contentDocument.getElementById('submit1').click();
|
| + assert_false(validityChecked);
|
| + };
|
| +}, "Tests early return of sandboxed form without the need to check for validity.");
|
| +</script>
|
|
|