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 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head><title>Test direction: dynamic change</title></head> |
michael@0 | 4 | <body> |
michael@0 | 5 | <p> |
michael@0 | 6 | math: |
michael@0 | 7 | <math> |
michael@0 | 8 | <mi>a</mi> |
michael@0 | 9 | <mi>b</mi> |
michael@0 | 10 | <mi>c</mi> |
michael@0 | 11 | </math> |
michael@0 | 12 | <math dir="ltr"> |
michael@0 | 13 | <mi>a</mi> |
michael@0 | 14 | <mi>b</mi> |
michael@0 | 15 | <mi>c</mi> |
michael@0 | 16 | </math> |
michael@0 | 17 | <math dir="rtl"> |
michael@0 | 18 | <mi>a</mi> |
michael@0 | 19 | <mi>b</mi> |
michael@0 | 20 | <mi>c</mi> |
michael@0 | 21 | </math> |
michael@0 | 22 | </p> |
michael@0 | 23 | |
michael@0 | 24 | <p> |
michael@0 | 25 | mstyle: |
michael@0 | 26 | <math> |
michael@0 | 27 | <mstyle> |
michael@0 | 28 | <mi>a</mi> |
michael@0 | 29 | <mi>b</mi> |
michael@0 | 30 | <mi>c</mi> |
michael@0 | 31 | </mstyle> |
michael@0 | 32 | </math> |
michael@0 | 33 | <math> |
michael@0 | 34 | <mstyle dir="ltr"> |
michael@0 | 35 | <mi>a</mi> |
michael@0 | 36 | <mi>b</mi> |
michael@0 | 37 | <mi>c</mi> |
michael@0 | 38 | </mstyle> |
michael@0 | 39 | </math> |
michael@0 | 40 | <math> |
michael@0 | 41 | <mstyle dir="rtl"> |
michael@0 | 42 | <mi>a</mi> |
michael@0 | 43 | <mi>b</mi> |
michael@0 | 44 | <mi>c</mi> |
michael@0 | 45 | </mstyle> |
michael@0 | 46 | </math> |
michael@0 | 47 | </p> |
michael@0 | 48 | |
michael@0 | 49 | <p> |
michael@0 | 50 | mrow: |
michael@0 | 51 | <math> |
michael@0 | 52 | <mrow> |
michael@0 | 53 | <mi>a</mi> |
michael@0 | 54 | <mi>b</mi> |
michael@0 | 55 | <mi>c</mi> |
michael@0 | 56 | </mrow> |
michael@0 | 57 | </math> |
michael@0 | 58 | <math> |
michael@0 | 59 | <mrow dir="ltr"> |
michael@0 | 60 | <mi>a</mi> |
michael@0 | 61 | <mi>b</mi> |
michael@0 | 62 | <mi>c</mi> |
michael@0 | 63 | </mrow> |
michael@0 | 64 | </math> |
michael@0 | 65 | <math> |
michael@0 | 66 | <mrow dir="rtl"> |
michael@0 | 67 | <mi>a</mi> |
michael@0 | 68 | <mi>b</mi> |
michael@0 | 69 | <mi>c</mi> |
michael@0 | 70 | </mrow> |
michael@0 | 71 | </math> |
michael@0 | 72 | </p> |
michael@0 | 73 | |
michael@0 | 74 | <script> |
michael@0 | 75 | function doTest() |
michael@0 | 76 | { |
michael@0 | 77 | var x = document.getElementsByTagName("math"); |
michael@0 | 78 | x[0].setAttribute("dir", "rtl"); |
michael@0 | 79 | x[1].setAttribute("dir", "rtl"); |
michael@0 | 80 | x[2].removeAttribute("dir"); |
michael@0 | 81 | |
michael@0 | 82 | x = document.getElementsByTagName("mstyle"); |
michael@0 | 83 | x[0].setAttribute("dir", "rtl"); |
michael@0 | 84 | x[1].setAttribute("dir", "rtl"); |
michael@0 | 85 | x[2].removeAttribute("dir"); |
michael@0 | 86 | |
michael@0 | 87 | x = document.getElementsByTagName("mrow"); |
michael@0 | 88 | x[0].setAttribute("dir", "rtl"); |
michael@0 | 89 | x[1].setAttribute("dir", "rtl"); |
michael@0 | 90 | x[2].removeAttribute("dir"); |
michael@0 | 91 | |
michael@0 | 92 | document.documentElement.removeAttribute("class"); |
michael@0 | 93 | } |
michael@0 | 94 | window.addEventListener("MozReftestInvalidate", doTest, false); |
michael@0 | 95 | </script> |
michael@0 | 96 | |
michael@0 | 97 | </body> |
michael@0 | 98 | </html> |