Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
michael@0 | 2 | <!-- |
michael@0 | 3 | Any copyright is dedicated to the Public Domain. |
michael@0 | 4 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 5 | --> |
michael@0 | 6 | <!-- |
michael@0 | 7 | This test checks that we reflow nested flex containers sufficiently when |
michael@0 | 8 | the window (or the iframe we're inside of) is horizontally resized. |
michael@0 | 9 | |
michael@0 | 10 | This test should end up rendering as a lime square, 100px by 100px. |
michael@0 | 11 | --> |
michael@0 | 12 | <html xmlns="http://www.w3.org/1999/xhtml" |
michael@0 | 13 | class="reftest-wait"> |
michael@0 | 14 | <head> |
michael@0 | 15 | <style> |
michael@0 | 16 | #frame { |
michael@0 | 17 | width: 400px; |
michael@0 | 18 | height: 200px; |
michael@0 | 19 | border: 0; |
michael@0 | 20 | } |
michael@0 | 21 | </style> |
michael@0 | 22 | <script> |
michael@0 | 23 | function tweak() { |
michael@0 | 24 | document.getElementById("frame").style.width = "100px"; |
michael@0 | 25 | document.documentElement.removeAttribute("class"); |
michael@0 | 26 | } |
michael@0 | 27 | window.addEventListener("MozReftestInvalidate", tweak, false); |
michael@0 | 28 | </script> |
michael@0 | 29 | </head> |
michael@0 | 30 | <body> |
michael@0 | 31 | <iframe id="frame" src="flexbox-dyn-changeFrameWidth-1-iframe.html"></iframe> |
michael@0 | 32 | </body> |
michael@0 | 33 | </html> |