accessible/tests/mochitest/jsat/doc_content_integration.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.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>Traversal Rule test document</title>
michael@0 5 <meta charset="utf-8" />
michael@0 6 <script>
michael@0 7 var frameContents = '<html>' +
michael@0 8 '<head><title>such app</title></head>' +
michael@0 9 '<body>' +
michael@0 10 '<h1>wow</h1>' +
michael@0 11 '<label><input type="checkbox">many option</label><br>' +
michael@0 12 '<label for="r">much range</label>' +
michael@0 13 '<input min="0" max="10" value="5" type="range" id="r">' +
michael@0 14 '</body>' +
michael@0 15 '</html>';
michael@0 16
michael@0 17 function showAlert() {
michael@0 18 document.getElementById('alert').hidden = false;
michael@0 19 }
michael@0 20
michael@0 21 function hideAlert() {
michael@0 22 document.getElementById('alert').hidden = true;
michael@0 23 }
michael@0 24
michael@0 25 </script>
michael@0 26 <style>
michael@0 27 #windows {
michael@0 28 position: relative;
michael@0 29 width: 320px;
michael@0 30 height: 480px;
michael@0 31 }
michael@0 32
michael@0 33 #windows > iframe {
michael@0 34 z-index: 1;
michael@0 35 }
michael@0 36
michael@0 37 #windows > div[role='dialog'] {
michael@0 38 z-index: 2;
michael@0 39 background-color: pink;
michael@0 40 }
michael@0 41
michael@0 42 #windows > * {
michael@0 43 position: absolute;
michael@0 44 width: 100%;
michael@0 45 height: 100%;
michael@0 46 }
michael@0 47
michael@0 48 iframe {
michael@0 49 width: 100%;
michael@0 50 height: 100%;
michael@0 51 }
michael@0 52
michael@0 53 </style>
michael@0 54
michael@0 55 </head>
michael@0 56 <body>
michael@0 57 <div>Phone status bar</div>
michael@0 58 <div id="windows">
michael@0 59 <div id="appframe"></div>
michael@0 60 <div role="dialog" id="alert" hidden>
michael@0 61 <h1>This is an alert!</h1>
michael@0 62 <p>Do you agree?</p>
michael@0 63 <button onclick="hideAlert()">Yes</button>
michael@0 64 <button onclick="hideAlert()">No</button>
michael@0 65 </div>
michael@0 66 </div>
michael@0 67 <button id="home">Home</button>
michael@0 68 </body>
michael@0 69 </html>

mercurial