layout/generic/test/test_plugin_clipping2.xhtml

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 <?xml version="1.0"?>
     2 <?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?>
     3 <html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Dynamic Tests">
     4 <head>
     5   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     6 </head>
     7 <body>
     9 <script class="testbody" type="application/javascript">
    10 <![CDATA[
    11 if (navigator.platform.indexOf("Mac") == 0) {
    12   todo(false, "Mac plugins do not support complex clipping");
    13 } else {
    14   window.open("plugin_clipping_helper2.xhtml", "", "width=620,height=320");
    15   SimpleTest.waitForExplicitFinish();
    16 }
    17 ]]>
    18 </script>
    20 </body>
    21 </html>

mercurial