editor/reftests/672709-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   <body>
     4     <style>
     5       :-moz-read-only { color: red; }
     6       :-moz-read-write { color: green; }
     7     </style>
     8     <script>
     9       onload = function() {
    10         document.designMode = "on";
    11         var p = document.createElement("p");
    12         p.textContent = "test";
    13         document.getElementById("x").appendChild(p);
    14         getSelection().removeAllRanges(); // don't need a caret
    15         document.documentElement.removeAttribute("class");
    16       };
    17     </script>
    18     <div contenteditable id="x">
    19     </div>
    20     more test
    21   </body>
    22 </html>

mercurial