content/test/reftest/bug439965-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>
     3 <body>
     4 <script>
     5 function doe(aEl) {
     6 var doc = aEl.contentDocument;
     7 doc.designMode = 'on';
     9 try {
    10 doc.execCommand("insertHTML",false,'some text');
    11 } catch(e) {
    12   document.getElementById('result').innerHTML = e;
    13 }
    14 }
    15 </script>
    17 <iframe onload="doe(this)"></iframe><br>
    18 <pre id="result" style="background-color: red; width: 300px; white-space: -moz-pre-wrap;"></pre>
    19 </body>
    20 </html>

mercurial