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 | <?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 | Testcase with fixed-position flex container. |
michael@0 | 8 | This positioning is with respect to the viewport. |
michael@0 | 9 | --> |
michael@0 | 10 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 11 | <head> |
michael@0 | 12 | <style> |
michael@0 | 13 | div.containingBlock { |
michael@0 | 14 | top: 15px; |
michael@0 | 15 | left: 20px; |
michael@0 | 16 | height: 400px; |
michael@0 | 17 | position: absolute; |
michael@0 | 18 | border: 2px dashed purple; |
michael@0 | 19 | } |
michael@0 | 20 | div.flexbox { |
michael@0 | 21 | top: 30px; |
michael@0 | 22 | left: 40px; |
michael@0 | 23 | width: 200px; |
michael@0 | 24 | height: 100px; |
michael@0 | 25 | display: flex; |
michael@0 | 26 | position: fixed; |
michael@0 | 27 | border: 1px solid black; |
michael@0 | 28 | } |
michael@0 | 29 | div.a { |
michael@0 | 30 | flex: 1 0 30px; |
michael@0 | 31 | height: 100px; |
michael@0 | 32 | background: lightgreen; |
michael@0 | 33 | } |
michael@0 | 34 | div.b { |
michael@0 | 35 | flex: 2 0 20px; |
michael@0 | 36 | height: 100px; |
michael@0 | 37 | background: yellow; |
michael@0 | 38 | } |
michael@0 | 39 | </style> |
michael@0 | 40 | </head> |
michael@0 | 41 | <body> |
michael@0 | 42 | <div class="containingBlock"> |
michael@0 | 43 | <div class="flexbox"><div class="a"/><div class="b"/></div> |
michael@0 | 44 | </div> |
michael@0 | 45 | </body> |
michael@0 | 46 | </html> |