editor/reftests/969773-ref.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 <head>
     4   <meta charset="utf-8">
     5   <title>Contenteditable Selection Test Case</title>
     6   <script>
     7     function runTests() {
     8       var text = document.getElementById("text");
    10       text.focus();
    12       setTimeout(function () {
    13         document.body.offsetHeight;
    14         document.documentElement.removeAttribute('class');
    15       }, 0);
    16     }
    17     document.addEventListener('MozReftestInvalidate', runTests, false);
    18   </script>
    19 </head>
    20 <body>
    21     <div>This is a contenteditable.</div>
    22     <div id="text" tabindex="0">This is focusable text</div>
    23 </body>
    24 </html>

mercurial