editor/libeditor/html/crashtests/420439.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 <html>
     2 <head>
     3 <script type="text/javascript">
     5 function boom()
     6 {
     7   function x()
     8   {
     9     document.removeEventListener("DOMAttrModified", x, false);
    10     document.execCommand("backcolor", false, "green");
    11   }
    13   document.getElementById("td").focus();
    15   document.addEventListener("DOMAttrModified", x, false);
    16   try { 
    17     document.execCommand("subscript", false, null); 
    18   } catch(e) { 
    19   }
    20   document.removeEventListener("DOMAttrModified", x, false);
    21 }
    23 </script>
    24 </head>
    26 <body contenteditable="true" onload="setTimeout(boom, 30);">
    27 <table><tbody contenteditable="false"><tr><td contenteditable="true" id="td"></td></tr></tbody></table>
    28 </body>
    30 </html>

mercurial