content/base/test/test_bug708620.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!doctype html>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=708620
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 708620</title>
     9   <script src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" href="/tests/SimpleTest/test.css">
    11 </head>
    12 <body>
    13 <a target="_blank"
    14    href="https://bugzilla.mozilla.org/show_bug.cgi?id=708620"
    15    >Mozilla Bug 708620</a>
    16 <iframe></iframe>
    17 <script>
    18 /** Test for Bug 708620 **/
    20 SimpleTest.waitForExplicitFinish();
    21 SimpleTest.monitorConsole(SimpleTest.finish, [
    22   { errorMessage: "A form was submitted in the windows-1252 encoding "+
    23                   "which cannot encode all Unicode characters, so user "+
    24                   "input may get corrupted. To avoid this problem, the "+
    25                   "page should be changed so that the form is submitted "+
    26                   "in the UTF-8 encoding either by changing the encoding "+
    27                   "of the page itself to UTF-8 or by specifying "+
    28                   "accept-charset=utf-8 on the form element.",
    29     isWarning: true }
    30 ]);
    32 window.onload = function () {
    33   document.getElementsByTagName("iframe")[0].src = "file_bug708620.html";
    34 }
    36 function finish() {
    37   SimpleTest.endMonitorConsole();
    38 }
    39 </script>
    40 </body>
    41 </html>

mercurial