editor/libeditor/base/crashtests/633709.xhtml

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 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     3 <body><div contenteditable="true"></div><div><input id="i"><div></div></input></div></body>
     5 <script id="s">
     6 <![CDATA[
     8 function boom()
     9 {
    10   document.getElementById("i").focus();
    12   try { document.execCommand("stylewithcss", false, "true") } catch(e) { }
    13   try { document.execCommand("inserthtml", false, "<x>X</x>"); } catch(e) { }
    14   try { document.execCommand("underline", false, null); } catch(e) { }
    15   try { document.execCommand("justifyfull", false, null); } catch(e) { }
    16   try { document.execCommand("underline", false, null); } catch(e) { }
    17   try { document.execCommand("insertParagraph", false, null); } catch(e) { }
    18   try { document.execCommand("delete", false, null); } catch(e) { }
    20   try { document.execCommand("stylewithcss", false, "false") } catch(e) { }
    21   try { document.execCommand("inserthtml", false, "<x>X</x>"); } catch(e) { }
    22   try { document.execCommand("underline", false, null); } catch(e) { }
    23   try { document.execCommand("justifyfull", false, null); } catch(e) { }
    24   try { document.execCommand("underline", false, null); } catch(e) { }
    25   try { document.execCommand("insertParagraph", false, null); } catch(e) { }
    26   try { document.execCommand("delete", false, null); } catch(e) { }
    28   document.documentElement.removeAttribute("class");
    29 }
    31 setTimeout(boom, 10);
    33 ]]>
    34 </script>
    36 </html>

mercurial