dom/plugins/test/reftest/border-padding-3.html

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <body style="margin:0">
     4 <object type="application/x-test" id="plugin"
     5         drawmode="solid" color="00000000"
     6         style="width:200px; height:200px; display:block; margin:90px 80px;
     7                outline:5px dashed blue;
     8                background:cyan;
     9                border:dotted black; border-width:4px 8px 4px 8px;
    10                padding:3px 1px;">
    11 </object>
    12 <script>
    13 var prevPaintCount = 0;
    14 function doTestWait() {
    15    if (document.getElementById("plugin").getPaintCount() != prevPaintCount) {
    16       document.documentElement.removeAttribute('class');
    17    } else {
    18      setTimeout(doTestWait, 0);
    19    }
    20 }
    22 function doTest() {
    23   prevPaintCount = document.getElementById("plugin").getPaintCount();
    24   document.getElementById("plugin").setColor("FFFF80FF");
    25   setTimeout(doTestWait, 0);
    27 }
    28 window.addEventListener("MozReftestInvalidate", doTest, false);
    29 </script>
    30 </body>
    31 </html>

mercurial