editor/reftests/input-text-notheme-onfocus-reframe-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 <head>
     4 	<title>bug 536421</title>
     5 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     6 <style>
     7 input { border:1px solid blue; }
     8 </style>
     9 </head>
    10 <body onload="doTest()">
    11   <input value="test" id="textbox" onfocus="triggerBug();" type="text">
    12   <script type="text/javascript">
    13     function finishTest()
    14     {
    15       document.documentElement.removeAttribute("class");
    16     }
    17     function triggerBug()
    18     {
    19       finishTest();
    20     }
    21     function doTest()
    22     {
    23       var t = document.getElementById("textbox");
    24       t.focus();
    25     }
    26   </script>
    27 </body>
    28 </html>

mercurial