layout/xul/crashtests/329477-1.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">
     2 <head>
     4 <script>
     6 <![CDATA[
     9 function init() 
    10 { 
    11   var textbox = document.getElementsByTagName("textbox")[0];
    12   var hbox = SpecialPowers.wrap(document).getAnonymousNodes(textbox)[0];
    13   var menupopup = SpecialPowers.wrap(document).getAnonymousNodes(hbox)[1];
    15   menupopup.click();
    16 }
    18 window.addEventListener("load", init, false);
    20 ]]>
    21 </script>
    23 </head>
    25 <body>
    28   <textbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/>
    30 </body>
    31 </html>

mercurial