Sat, 03 Jan 2015 20:18:00 +0100
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.
michael@0 | 1 | <html> |
michael@0 | 2 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 5 | <head> |
michael@0 | 6 | <style> |
michael@0 | 7 | #el0 { |
michael@0 | 8 | height: 200px ! important; |
michael@0 | 9 | padding: 4px; |
michael@0 | 10 | white-space: pre-wrap; |
michael@0 | 11 | margin-top: 0px; |
michael@0 | 12 | display: table; |
michael@0 | 13 | font-size:.92em |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | #el0:before { |
michael@0 | 17 | content: counter(c, hiragana-iroha); |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | #el3 { |
michael@0 | 21 | line-height: 3px; |
michael@0 | 22 | text-shadow: 0px 5px 5px, 0px -20px 10px; |
michael@0 | 23 | display: table-row-group; |
michael@0 | 24 | transform: translate3d(-30px, -300px, 0px); |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | #el3:before { |
michael@0 | 28 | display: inline-block; |
michael@0 | 29 | } |
michael@0 | 30 | |
michael@0 | 31 | #el5 { |
michael@0 | 32 | height:1em; |
michael@0 | 33 | display:block; |
michael@0 | 34 | } |
michael@0 | 35 | |
michael@0 | 36 | #el5:before { |
michael@0 | 37 | display: list-item; |
michael@0 | 38 | } |
michael@0 | 39 | |
michael@0 | 40 | #el7 { |
michael@0 | 41 | font-size:.92em |
michael@0 | 42 | } |
michael@0 | 43 | .c4 { |
michael@0 | 44 | margin: 1em; |
michael@0 | 45 | padding:0.4em 0.5em 0.4em 2.5em; |
michael@0 | 46 | counter-increment: c; |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | .c4:after { |
michael@0 | 50 | margin: 2px; |
michael@0 | 51 | display: inline-block; |
michael@0 | 52 | } |
michael@0 | 53 | </style> |
michael@0 | 54 | <script> |
michael@0 | 55 | onload = function() { |
michael@0 | 56 | el7=document.createElement('iframe') |
michael@0 | 57 | el7.setAttribute('id', 'el7') |
michael@0 | 58 | document.body.appendChild(el7) |
michael@0 | 59 | |
michael@0 | 60 | el0=document.createElement('ul') |
michael@0 | 61 | el0.setAttribute('id','el0') |
michael@0 | 62 | document.body.appendChild(el0) |
michael@0 | 63 | |
michael@0 | 64 | |
michael@0 | 65 | el3=document.createElement('q') |
michael@0 | 66 | el3.setAttribute('id','el3') |
michael@0 | 67 | el0.appendChild(el3) |
michael@0 | 68 | |
michael@0 | 69 | el5=document.createElement('q') |
michael@0 | 70 | el5.setAttribute('id','el5') |
michael@0 | 71 | el3.appendChild(el5) |
michael@0 | 72 | |
michael@0 | 73 | el0.appendChild(document.createTextNode('A')) |
michael@0 | 74 | |
michael@0 | 75 | el0.setAttribute('class', 'c4'); |
michael@0 | 76 | el7.setAttribute('class', 'c4'); |
michael@0 | 77 | } |
michael@0 | 78 | </script> |
michael@0 | 79 | </head> |
michael@0 | 80 | <body> |
michael@0 | 81 | </body> |
michael@0 | 82 | </html> |