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 | /* |
michael@0 | 6 | * This defines the look-and-feel styling of the error pages. |
michael@0 | 7 | * (see: netError.xhtml) |
michael@0 | 8 | * |
michael@0 | 9 | * Original styling by William Price <bugzilla@mob.rice.edu> |
michael@0 | 10 | * Updated for mobile by: Wes Johnston <wjohnston@mozilla.com> |
michael@0 | 11 | */ |
michael@0 | 12 | |
michael@0 | 13 | body { |
michael@0 | 14 | margin: 0; |
michael@0 | 15 | padding: 0 8px 8px; |
michael@0 | 16 | font-family: "Nokia Sans", Tahoma, sans-serif !important; |
michael@0 | 17 | } |
michael@0 | 18 | |
michael@0 | 19 | h1 { |
michael@0 | 20 | font-size: 22px; |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | h2 { |
michael@0 | 24 | font-size: 16px; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | ul { |
michael@0 | 28 | margin: 0px; |
michael@0 | 29 | padding: 0px 0px 0px 1em; |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | li { |
michael@0 | 33 | margin: 0px; |
michael@0 | 34 | padding: 8px 0px; |
michael@0 | 35 | } |
michael@0 | 36 | |
michael@0 | 37 | #errorPage { |
michael@0 | 38 | background-color: #CEE6F4; |
michael@0 | 39 | } |
michael@0 | 40 | |
michael@0 | 41 | #errorPage.certerror { |
michael@0 | 42 | background-color: #EFD400; |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | #errorPage.blockedsite { |
michael@0 | 46 | background-color: #BF0000; |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | #errorTitle { |
michael@0 | 50 | background: url("chrome://b2g/content/images/errorpage-warning.png") left center no-repeat; |
michael@0 | 51 | /* Scaled by .666 of their actual size */ |
michael@0 | 52 | background-size: 40px 40px; |
michael@0 | 53 | background-origin: content-box; |
michael@0 | 54 | min-height: 60px; |
michael@0 | 55 | margin-left: auto; |
michael@0 | 56 | margin-right: auto; |
michael@0 | 57 | max-width: 500px; |
michael@0 | 58 | margin-left: auto; |
michael@0 | 59 | margin-right: auto; |
michael@0 | 60 | } |
michael@0 | 61 | |
michael@0 | 62 | #errorPage.certerror #errorTitle { |
michael@0 | 63 | background-image: url("chrome://b2g/content/images/errorpage-larry-black.png"); |
michael@0 | 64 | } |
michael@0 | 65 | |
michael@0 | 66 | #errorPage.blockedsite #errorTitle { |
michael@0 | 67 | background-image: url("chrome://b2g/content/images/errorpage-larry-white.png"); |
michael@0 | 68 | color: white; |
michael@0 | 69 | } |
michael@0 | 70 | |
michael@0 | 71 | .errorTitleText { |
michael@0 | 72 | padding: 0px 0px 0px 50px; |
michael@0 | 73 | display: inline-block; |
michael@0 | 74 | vertical-align: middle |
michael@0 | 75 | } |
michael@0 | 76 | |
michael@0 | 77 | #errorPageContainer { |
michael@0 | 78 | background-color: white; |
michael@0 | 79 | border: 1px solid #999999; |
michael@0 | 80 | border-radius: 6px; |
michael@0 | 81 | padding: 6px 20px 20px; |
michael@0 | 82 | font-size: 14px; |
michael@0 | 83 | max-width: 500px; |
michael@0 | 84 | margin-left: auto; |
michael@0 | 85 | margin-right: auto; |
michael@0 | 86 | } |
michael@0 | 87 | |
michael@0 | 88 | #errorShortDesc > p:empty { |
michael@0 | 89 | display: none; |
michael@0 | 90 | } |
michael@0 | 91 | |
michael@0 | 92 | #errorShortDesc > p { |
michael@0 | 93 | overflow: auto; |
michael@0 | 94 | border-bottom: 1px solid #999999; |
michael@0 | 95 | padding-bottom: 1em; |
michael@0 | 96 | } |
michael@0 | 97 | |
michael@0 | 98 | #errorPage.blockedsite #errorShortDesc > p { |
michael@0 | 99 | font-weight: bold; |
michael@0 | 100 | border-bottom: none; |
michael@0 | 101 | padding-bottom: 0px; |
michael@0 | 102 | } |
michael@0 | 103 | |
michael@0 | 104 | #securityOverrideDiv { |
michael@0 | 105 | padding-top: 10px; |
michael@0 | 106 | } |
michael@0 | 107 | |
michael@0 | 108 | div[collapsed] { |
michael@0 | 109 | padding-left: 15px; |
michael@0 | 110 | background-image: url("chrome://b2g/content/images/arrowright-16.png"); |
michael@0 | 111 | background-size: 11px 11px; |
michael@0 | 112 | background-repeat: no-repeat; |
michael@0 | 113 | background-position: left 0.3em; |
michael@0 | 114 | } |
michael@0 | 115 | |
michael@0 | 116 | div[collapsed="true"] { |
michael@0 | 117 | background-image: url("chrome://b2g/content/images/arrowright-16.png"); |
michael@0 | 118 | } |
michael@0 | 119 | |
michael@0 | 120 | div[collapsed="false"] { |
michael@0 | 121 | background-image: url("chrome://b2g/content/images/arrowdown-16.png"); |
michael@0 | 122 | } |
michael@0 | 123 | |
michael@0 | 124 | div[collapsed="true"] > p, |
michael@0 | 125 | div[collapsed="true"] > div { |
michael@0 | 126 | display: none; |
michael@0 | 127 | } |
michael@0 | 128 | |
michael@0 | 129 | button { |
michael@0 | 130 | padding: 0.3em !important; |
michael@0 | 131 | } |