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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/dangling-markup/option.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/dangling-markup/resources/helper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <select name="dangling"><option>
13 `,
14 `
15 <div>
16 <form action="/security/resources/postmessage-post.php" method="post">
17 <input type="submit">
18 <select name="dangling"><option>
19 `,
20 `
21 <form action="/security/resources/postmessage-post.php" method="post" id=" form">
22 <input type="submit">
23 </form>
24 <select name="dangling" form="form"><option>
25 `,
26 `
27 <form action="/security/resources/postmessage-post.php" method="post">
28 <input type="submit">
29 <select name="dangling"><option label="yay">
30 `,
31 `
32 <div>
33 <form action="/security/resources/postmessage-post.php" method="post">
34 <input type="submit">
35 <select name="dangling"><option label="yay">
36 `,
37 `
38 <form action="/security/resources/postmessage-post.php" method="post" id=" form">
39 <input type="submit">
40 </form>
41 <select name="dangling" form="form"><option label="yay">
42 `
43 ];
44
45 tests.forEach(markup => {
46 async_test(t => {
47 var i = createFrame(`${markup}sekrit<element attribute></element>`);
48 assert_no_submission(t, i);
49 }, markup.replace(/[\n\r]/g, ''));
50 });
51 </script>
52
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/dangling-markup/resources/helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698