layout/reftests/image-element/referenced-from-binding-01.html

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/licenses/publicdomain/
     4 -->
     5 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=587585 -->
     6 <!DOCTYPE html>
     7 <title>Test -moz-element reference with external binding</title>
     8 <style>
     9 .paintClient {
    10   background: -moz-element(#image-element);
    11   width: 100px;
    12   height: 100px;
    13 }
    14 </style>
    16 <body style="margin:0">
    17   <div style="-moz-binding: url(referenced-from-binding-01.xbl#insertPaintClient);"></div>
    18   <div style="height: 0; overflow: hidden;">
    19     <div id="image-element"
    20          style="width: 20px; height: 20px; background: lime;"></div>
    21   </div>
    22 </body>

mercurial