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 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | .hidden { |
michael@0 | 6 | display: none; |
michael@0 | 7 | } |
michael@0 | 8 | |
michael@0 | 9 | html { |
michael@0 | 10 | background-color: -moz-Field; |
michael@0 | 11 | color: -moz-FieldText; |
michael@0 | 12 | font: message-box; |
michael@0 | 13 | } |
michael@0 | 14 | |
michael@0 | 15 | body { |
michael@0 | 16 | padding: 0px; |
michael@0 | 17 | margin: 0px; |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | h2 { |
michael@0 | 21 | font-size: medium; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | #page-description { |
michael@0 | 25 | background-color: LightGray; |
michael@0 | 26 | border: 1px solid threedshadow; |
michael@0 | 27 | margin: 0px; |
michael@0 | 28 | padding: 10px; |
michael@0 | 29 | } |
michael@0 | 30 | |
michael@0 | 31 | #description-enabled > span { |
michael@0 | 32 | color: green; |
michael@0 | 33 | } |
michael@0 | 34 | |
michael@0 | 35 | #description-disabled > span { |
michael@0 | 36 | color: red; |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | .data-section { |
michael@0 | 40 | background-color: WhiteSmoke; |
michael@0 | 41 | border-top: 1px solid threedshadow; |
michael@0 | 42 | border-bottom: 1px solid threedshadow; |
michael@0 | 43 | margin: 0px; |
michael@0 | 44 | padding: 10px; |
michael@0 | 45 | } |
michael@0 | 46 | |
michael@0 | 47 | .data-section:not(.has-data) { |
michael@0 | 48 | color: gray; |
michael@0 | 49 | } |
michael@0 | 50 | |
michael@0 | 51 | |
michael@0 | 52 | .section-name { |
michael@0 | 53 | font-size: x-large; |
michael@0 | 54 | display: inline; |
michael@0 | 55 | } |
michael@0 | 56 | |
michael@0 | 57 | .has-data .section-name { |
michael@0 | 58 | cursor: pointer; |
michael@0 | 59 | } |
michael@0 | 60 | |
michael@0 | 61 | |
michael@0 | 62 | .toggle-caption { |
michael@0 | 63 | font-style: italic; |
michael@0 | 64 | cursor: pointer; |
michael@0 | 65 | } |
michael@0 | 66 | |
michael@0 | 67 | .data-section:not(.has-data) .toggle-caption { |
michael@0 | 68 | display: none; |
michael@0 | 69 | } |
michael@0 | 70 | |
michael@0 | 71 | |
michael@0 | 72 | .empty-caption { |
michael@0 | 73 | font-style: italic; |
michael@0 | 74 | } |
michael@0 | 75 | |
michael@0 | 76 | .has-data .empty-caption { |
michael@0 | 77 | display: none; /* invisible when has-data */ |
michael@0 | 78 | } |
michael@0 | 79 | |
michael@0 | 80 | |
michael@0 | 81 | .data { |
michael@0 | 82 | margin: 15px; |
michael@0 | 83 | display: none; |
michael@0 | 84 | } |
michael@0 | 85 | |
michael@0 | 86 | .has-data.expanded .data { |
michael@0 | 87 | display: block; |
michael@0 | 88 | } |
michael@0 | 89 | |
michael@0 | 90 | |
michael@0 | 91 | .stack-title { |
michael@0 | 92 | font-size: medium; |
michael@0 | 93 | font-weight: bold; |
michael@0 | 94 | text-decoration: underline; |
michael@0 | 95 | } |
michael@0 | 96 | |
michael@0 | 97 | #histograms, #addon-histograms, #thread-hang-stats>div { |
michael@0 | 98 | overflow: hidden; |
michael@0 | 99 | } |
michael@0 | 100 | |
michael@0 | 101 | .histogram { |
michael@0 | 102 | float: left; |
michael@0 | 103 | border: 1px solid gray; |
michael@0 | 104 | white-space: nowrap; |
michael@0 | 105 | padding: 10px; |
michael@0 | 106 | position: relative; /* required for position:absolute of the contained .copy-node */ |
michael@0 | 107 | } |
michael@0 | 108 | |
michael@0 | 109 | body[dir="rtl"] .histogram { |
michael@0 | 110 | float: right; |
michael@0 | 111 | } |
michael@0 | 112 | |
michael@0 | 113 | .histogram-title { |
michael@0 | 114 | text-overflow: ellipsis; |
michael@0 | 115 | width: 100%; |
michael@0 | 116 | white-space: nowrap; |
michael@0 | 117 | overflow: hidden; |
michael@0 | 118 | } |
michael@0 | 119 | |
michael@0 | 120 | .bar { |
michael@0 | 121 | width: 2em; |
michael@0 | 122 | margin: 2px; |
michael@0 | 123 | text-align: center; |
michael@0 | 124 | float: left; |
michael@0 | 125 | font-family: monospace; |
michael@0 | 126 | } |
michael@0 | 127 | |
michael@0 | 128 | body[dir="rtl"] .bar { |
michael@0 | 129 | float: right; |
michael@0 | 130 | } |
michael@0 | 131 | |
michael@0 | 132 | .bar-inner { |
michael@0 | 133 | background-color: DeepSkyBlue; |
michael@0 | 134 | border: 1px solid #0000b0; |
michael@0 | 135 | } |
michael@0 | 136 | |
michael@0 | 137 | th { |
michael@0 | 138 | font-weight: bold; |
michael@0 | 139 | white-space: nowrap; |
michael@0 | 140 | text-align: left; |
michael@0 | 141 | } |
michael@0 | 142 | |
michael@0 | 143 | body[dir="rtl"] th { |
michael@0 | 144 | text-align: right; |
michael@0 | 145 | } |
michael@0 | 146 | |
michael@0 | 147 | caption { |
michael@0 | 148 | font-weight: bold; |
michael@0 | 149 | white-space: nowrap; |
michael@0 | 150 | text-align: left; |
michael@0 | 151 | font-size: large; |
michael@0 | 152 | } |
michael@0 | 153 | |
michael@0 | 154 | body[dir="rtl"] caption { |
michael@0 | 155 | text-align: right; |
michael@0 | 156 | } |
michael@0 | 157 | |
michael@0 | 158 | .copy-node { |
michael@0 | 159 | visibility: hidden; |
michael@0 | 160 | position: absolute; |
michael@0 | 161 | bottom: 1px; |
michael@0 | 162 | right: 1px; |
michael@0 | 163 | } |
michael@0 | 164 | |
michael@0 | 165 | body[dir="rtl"] .copy-node { |
michael@0 | 166 | left: 1px; |
michael@0 | 167 | } |
michael@0 | 168 | |
michael@0 | 169 | .histogram:hover .copy-node { |
michael@0 | 170 | visibility: visible; |
michael@0 | 171 | } |
michael@0 | 172 | |
michael@0 | 173 | |
michael@0 | 174 | .statebox { |
michael@0 | 175 | display: none; |
michael@0 | 176 | } |
michael@0 | 177 | |
michael@0 | 178 | |
michael@0 | 179 | .filter-ui { |
michael@0 | 180 | -moz-padding-start: 10em; |
michael@0 | 181 | display: none; |
michael@0 | 182 | } |
michael@0 | 183 | |
michael@0 | 184 | .has-data.expanded .filter-ui { |
michael@0 | 185 | display: inline; |
michael@0 | 186 | } |
michael@0 | 187 | |
michael@0 | 188 | .filter-blocked { |
michael@0 | 189 | display: none; |
michael@0 | 190 | } |