layout/reftests/svg/nesting-invalid-01.svg

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

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.

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink='http://www.w3.org/1999/xlink' font-size='16px'>
     6   <!--
     7     This tests that elements that are not container elements do not render their
     8     children.
     9   -->
    10   <rect id='r' width='100%' height='100%' fill='red'/>
    11   <script xlink:href='nesting-invalid-01.js'/>
    12   <script><![CDATA[
    13     for (var i = 0; i < es.length; i++) {
    14       document.documentElement.appendChild(makeGroup(i, false, es[i]));
    15       document.documentElement.appendChild(makeElement(es[i], { }, [makeGroup(i, true, es[i])]));
    16     }
    18     document.documentElement.removeChild(document.getElementById('r'));
    19   ]]></script>
    20 </svg>

mercurial