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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/dangling-markup/textarea.html

Issue 2628723004: Experiment with restricting form submission with open elements. (Closed)
Patch Set: Rebase. Created 3 years, 11 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 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <script src="./resources/helper.js"></script>
5 <body>
6 <script>
7
8 var tests = [
9 `
10 <form action="/security/resources/postmessage-post.php" method="post">
11 <input type="submit">
12 <textarea name="dangling">
13 `,
14 `
15 <div>
16 <form action="/security/resources/postmessage-post.php" method="post">
17 <input type="submit">
18 <textarea name="dangling">
19 `,
20 `
21 <form action="/security/resources/postmessage-post.php" method="post" id=" form">
22 <input type="submit">
23 </form>
24 <textarea name="dangling" form="form">
25 `
26 ];
27
28 tests.forEach(markup => {
29 async_test(t => {
30 var i = createFrame(`${markup}sekrit<element attribute></element>`);
31 assert_no_submission(t, i);
32 }, markup.replace(/[\n\r]/g, ''));
33 });
34 </script>
35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698