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 | height: 1em; |
michael@0 | 10 | width: 1em; |
michael@0 | 11 | padding: 5px; |
michael@0 | 12 | display: table; |
michael@0 | 13 | -moz-transform:translate3d(0, 80px, 0); |
michael@0 | 14 | } |
michael@0 | 15 | #el0:before { |
michael@0 | 16 | display: -moz-grid; |
michael@0 | 17 | content: counter(c, hiragana) attr(id); |
michael@0 | 18 | counter-increment: c 694; |
michael@0 | 19 | } |
michael@0 | 20 | #el0:after { |
michael@0 | 21 | counter-reset: c 694; |
michael@0 | 22 | content: counter(c, cjk-ideographic) attr(id); |
michael@0 | 23 | } |
michael@0 | 24 | #el1 { |
michael@0 | 25 | text-shadow: 0px 20px 0px, 0px -20px 10px; |
michael@0 | 26 | line-height: 4px; |
michael@0 | 27 | transform: translate3d(0px, -300px, 0px); |
michael@0 | 28 | display: table-row-group; |
michael@0 | 29 | border-spacing: 7px; |
michael@0 | 30 | } |
michael@0 | 31 | #el1:after { |
michael@0 | 32 | counter-reset: c; |
michael@0 | 33 | display: -moz-box; |
michael@0 | 34 | content: counter(c, cjk-ideographic) attr(id); |
michael@0 | 35 | counter-increment: c 694; |
michael@0 | 36 | } |
michael@0 | 37 | #el2 { |
michael@0 | 38 | display: table-row-group; |
michael@0 | 39 | -moz-transform:translate3d(0, 80px, 0); |
michael@0 | 40 | } |
michael@0 | 41 | #el2:after { |
michael@0 | 42 | content: counter(c, cjk-ideographic) attr(id); |
michael@0 | 43 | } |
michael@0 | 44 | </style> |
michael@0 | 45 | <script> |
michael@0 | 46 | onload = function() { |
michael@0 | 47 | el0=document.createElement('div') |
michael@0 | 48 | el0.setAttribute('id','el0') |
michael@0 | 49 | document.body.appendChild(el0) |
michael@0 | 50 | el1=document.createElement('div') |
michael@0 | 51 | el1.setAttribute('id','el1') |
michael@0 | 52 | el0.appendChild(el1) |
michael@0 | 53 | el2=document.createElement('q') |
michael@0 | 54 | el2.setAttribute('id','el2') |
michael@0 | 55 | el1.appendChild(el2) |
michael@0 | 56 | el0.appendChild(document.createTextNode('A')) |
michael@0 | 57 | setTimeout("location.reload()", 100) |
michael@0 | 58 | } |
michael@0 | 59 | </script> |
michael@0 | 60 | </head> |
michael@0 | 61 | <body> |
michael@0 | 62 | </body> |
michael@0 | 63 | </html> |