content/base/test/test_bug708620.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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