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

Side by Side Diff: LayoutTests/fast/forms/form-data-encoding.html

Issue 19845004: Do not normalize into NFC the values of form fields (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add normalizeAndEncode() without memory safety problem Created 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/forms/form-data-encoding-2.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> 3 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
4 <title>Charsets and submitting forms</title> 4 <title>Charsets and submitting forms</title>
5 </head> 5 </head>
6 <body> 6 <body>
7 <form action="?" name=f> 7 <form action="?" name=f>
8 <input type=hidden name=q value="&#1105;&#66560;&#119083;çc"><br> 8 <input type=hidden name=q value="&#1105;&#66560;&#119083;çc"><br>
9 </form> 9 </form>
10 <script> 10 <script>
11 if (window.testRunner) { 11 if (window.testRunner) {
12 testRunner.dumpAsText(); 12 testRunner.dumpAsText();
13 testRunner.waitUntilDone(); 13 testRunner.waitUntilDone();
14 } 14 }
15 15
16 if (document.URL.substring(0, 4) == "file") { 16 if (document.URL.substring(0, 4) == "file") {
17 17
18 if (document.URL.indexOf('?') == -1) { 18 if (document.URL.indexOf('?') == -1) {
19 document.f.q.value += "\u0327"; // cedilla for 'c' 19 document.f.q.value += "\u0327"; // cedilla for 'c'
20 document.f.submit(); 20 document.f.submit();
21 21
22 } else { 22 } else {
23 if (unescape(document.URL.substring(document.URL.indexOf('?')+1, documen t.URL.length)) == unescape("q=%26%231105%3B%26%2366560%3B%26%23119083%3B%E7%E7") ) 23 if (unescape(document.URL.substring(document.URL.indexOf('?')+1, documen t.URL.length)) == unescape("q=%26%231105%3B%26%2366560%3B%26%23119083%3B%E7c%26% 23807%3B"))
24 document.write("<p>Success</p>"); 24 document.write("<p>Success</p>");
25 else 25 else
26 document.write("<p>Failure, query is " + document.URL.substring(docu ment.URL.indexOf('?')+1, document.URL.length) + "</p>"); 26 document.write("<p>Failure, query is " + document.URL.substring(docu ment.URL.indexOf('?')+1, document.URL.length) + "</p>");
27 27
28 if (window.testRunner) 28 if (window.testRunner)
29 testRunner.notifyDone(); 29 testRunner.notifyDone();
30 } 30 }
31 31
32 } else { 32 } else {
33 33
34 document.write("<p>This test doesn't work directly from bugzilla, please sav e it to a local file first.</p>"); 34 document.write("<p>This test doesn't work directly from bugzilla, please sav e it to a local file first.</p>");
35 } 35 }
36 </script> 36 </script>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/form-data-encoding-2.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698