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

Unified Diff: third_party/WebKit/LayoutTests/fast/frames/form-submission-early-return-for-sandboxed-iframes.html

Issue 2191493002: Form submission should abort before constraint validation if sandboxed forms flag is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/frames/resources/sandboxed-iframe-src.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/frames/resources/sandboxed-iframe-src.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698