layout/reftests/font-face/dynamic-duplicate-rule-1b.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.

     1 <!DOCTYPE HTML>
     2 <html class="reftest-wait">
     3 <head>
     4 <meta charset="utf-8">
     6 <!-- Testcase for bug 879963 regression.
     7      Identical to dynamic-duplicate-rule-1a, except that we disable the
     8      second rule (rather than the first), to allow for the possibility of
     9      changes in how rules are ordered/searched. -->
    11 <style type="text/css" id="style1">
    12 @font-face {
    13   font-family: foo;
    14   src: local("Arial"),
    15        local("DejaVu Sans"),
    16        local("Free Sans"),
    17        local("Open Sans"),
    18        local("Droid Sans"),
    19        local("Roboto");
    20 }
    21 </style>
    23 <style type="text/css" id="style2">
    24 @font-face {
    25   font-family: foo;
    26   src: local("Arial"),
    27        local("DejaVu Sans"),
    28        local("Free Sans"),
    29        local("Open Sans"),
    30        local("Droid Sans"),
    31        local("Roboto");
    32 }
    33 </style>
    35 <style type="text/css">
    36 body {
    37   font-family: serif;
    38 }
    39 .test {
    40   font-family: foo;
    41 }
    42 </style>
    44 <script type="application/javascript">
    45 function run() {
    46   document.getElementById("style2").disabled = true;
    47   document.documentElement.removeAttribute("class");
    48 }
    49 </script>
    51 </head>
    53 <body onload="run()">
    54 <div>
    55 foo <span class="test">bar</span> baz
    56 </div>
    57 </body>
    59 </html>

mercurial