accessible/tests/mochitest/states/test_editablebody.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=454997
     5 -->
     6 <head>
     7   <title>nsIAccessible states tests of contenteditable body</title>
     8   <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
    10   <script type="application/javascript"
    11           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    13   <script type="application/javascript"
    14           src="../common.js"></script>
    15   <script type="application/javascript"
    16           src="../role.js"></script>
    17   <script type="application/javascript"
    18           src="../states.js"></script>
    20   <script type="application/javascript">
    21     function doTest()
    22     {
    23       testStates(document, 0, EXT_STATE_EDITABLE);
    24       testStates("p", 0, EXT_STATE_EDITABLE);
    26       SimpleTest.finish();
    27     }
    29     SimpleTest.waitForExplicitFinish();
    30     addA11yLoadEvent(doTest);
    31   </script>
    32 </head>
    34 <body contentEditable="true">
    36   <a target="_blank"
    37      title="nsIAccessible states tests of contenteditable body"
    38      href="https://bugzilla.mozilla.org/show_bug.cgi?id=454997">Mozilla Bug 454997</a>
    39   <p id="display"></p>
    40   <div id="content" style="display: none"></div>
    41   <pre id="test">
    42   </pre>
    44   <p id="p">hello</p>
    45 </body>
    46 </html>

mercurial