gfx/tests/crashtests/783041-3.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 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     3    - License, v. 2.0. If a copy of the MPL was not distributed with this
     4    - file, You can obtain one at http://mozilla.org/MPL/2.0/.  -->
     5   <head>
     6     <style>
     7       #el0 { 
     8         height: 200px ! important; 
     9         padding: 4px; 
    10         white-space: pre-wrap; 
    11         margin-top: 0px; 
    12         display: table;
    13       }
    14       #el3 { 
    15         line-height: 3px; 
    16         text-shadow: 0px 5px 5px, 0px -20px 10px;
    17       }
    18       #el3:before { display: inline-block; }
    19       #el3:first-of-type { transform: translate3d(-30px, -300px, 0px); }
    20       #el3:first-child { display: table-row-group; }
    21       #el5:before { -moz-margin-before:1em; display: list-item; content: counter(c, ethiopic-halehame-tig) attr(id); counter-increment: c 810; } 
    22       #el5 { list-style-type:lower-greek } 
    23       #el5 { background:red;margin:0;height:1em;display:block } 
    24       #el5:nth-child(3) { -moz-svg-shadow:5px 5px 5px red; display: link; content: counter(c, asterisks) attr(id); counter-increment: c 266; } 
    26       .c4 { 
    27         margin: 1em; } 
    28       #el7 { font-size:.92em } 
    29       #el3 { font-size:.92em } 
    30       .c4 { padding:0.4em 0.5em 0.4em 2.5em } 
    31       .c4:after { margin:2px; display: -moz-box; content: counter(c, octal) attr(id); counter-increment: c 171; } 
    32       .c4:before { -moz-user-drag:none; display: -moz-inline-flexbox; content: counter(c, hiragana-iroha) attr(id); counter-increment: c 209; } 
    33       .c4:only-of-type { -moz-logical-height:50px; display: -moz-box; content: counter(c, binary) attr(id); counter-increment: c 871; } 
    34     </style>
    35     <script>
    36       onload = function() {
    37         el0=document.createElement('ul')
    38         el0.setAttribute('id','el0')
    39         document.body.appendChild(el0)
    41         el1=document.createElement('canvas')
    42         document.body.appendChild(el1)
    45         el3=document.createElement('q')
    46         el3.setAttribute('id','el3')
    47         el0.appendChild(el3)
    49         el4=document.createElement('progress')
    50         el4.setAttribute('id','el4')
    51         document.body.appendChild(el4)
    53         el5=document.createElement('q')
    54         el5.setAttribute('id','el5')
    55         el3.appendChild(el5)
    57         el0.appendChild(document.createTextNode('A'))
    59         el7=document.createElement('iframe')
    60         el7.setAttribute('id', 'el7')
    61         el0.parentNode.insertBefore(el7, el0)
    62         el0.setAttribute('class', 'c4'); 
    63         el3.setAttribute('class', 'c4'); 
    64         el7.setAttribute('class', 'c4'); 
    65         setTimeout("window.close()", 5000)
    66       }
    67     </script>
    68   </head>
    69   <body>
    70   </body>
    71 </html>

mercurial