Tue, 06 Jan 2015 21:39:09 +0100
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.
michael@0 | 1 | <html> |
michael@0 | 2 | |
michael@0 | 3 | <head> |
michael@0 | 4 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
michael@0 | 5 | <title>Keyboard shortcuts tests</title> |
michael@0 | 6 | <link rel="stylesheet" type="text/css" |
michael@0 | 7 | href="chrome://mochikit/content/tests/SimpleTest/test.css" /> |
michael@0 | 8 | |
michael@0 | 9 | <script type="application/javascript" |
michael@0 | 10 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 11 | |
michael@0 | 12 | <script type="application/javascript" |
michael@0 | 13 | src="../common.js"></script> |
michael@0 | 14 | |
michael@0 | 15 | <script type="application/javascript"> |
michael@0 | 16 | function testAcessKey(aAccOrElmOrID, aKey) |
michael@0 | 17 | { |
michael@0 | 18 | var acc = getAccessible(aAccOrElmOrID); |
michael@0 | 19 | if (!acc) |
michael@0 | 20 | return; |
michael@0 | 21 | |
michael@0 | 22 | is(acc.accessKey, aKey, |
michael@0 | 23 | "Wrong keyboard shortcut on " + prettyName(aAccOrElmOrID)); |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | function doTest() |
michael@0 | 27 | { |
michael@0 | 28 | testAcessKey("input1", ""); |
michael@0 | 29 | testAcessKey("input2", MAC ? "⌃⌥b" : "Alt+Shift+b"); |
michael@0 | 30 | testAcessKey("link", MAC ? "⌃⌥l" : "Alt+Shift+l"); |
michael@0 | 31 | |
michael@0 | 32 | SimpleTest.finish(); |
michael@0 | 33 | } |
michael@0 | 34 | |
michael@0 | 35 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 36 | addA11yLoadEvent(doTest); |
michael@0 | 37 | </script> |
michael@0 | 38 | |
michael@0 | 39 | </head> |
michael@0 | 40 | |
michael@0 | 41 | <body> |
michael@0 | 42 | |
michael@0 | 43 | <a target="_blank" |
michael@0 | 44 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=381599" |
michael@0 | 45 | title="Inverse relations cache"> |
michael@0 | 46 | Mozilla Bug 381599 |
michael@0 | 47 | </a> |
michael@0 | 48 | <p id="display"></p> |
michael@0 | 49 | <div id="content" style="display: none"></div> |
michael@0 | 50 | <pre id="test"> |
michael@0 | 51 | </pre> |
michael@0 | 52 | |
michael@0 | 53 | <label accesskey="a"> |
michael@0 | 54 | <input id="input1"/> |
michael@0 | 55 | </label> |
michael@0 | 56 | <label accesskey="b" for="input2"> |
michael@0 | 57 | <input id="input2"/> |
michael@0 | 58 | <a id="link" accesskey="l">link</a> |
michael@0 | 59 | </body> |
michael@0 | 60 | </html> |