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 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 6 | @namespace html url("http://www.w3.org/1999/xhtml"); |
michael@0 | 7 | |
michael@0 | 8 | .scrubber, |
michael@0 | 9 | .volumeControl { |
michael@0 | 10 | -moz-binding: url("chrome://global/content/bindings/videocontrols.xml#suppressChangeEvent"); |
michael@0 | 11 | } |
michael@0 | 12 | |
michael@0 | 13 | .scrubber .scale-thumb { |
michael@0 | 14 | -moz-binding: url("chrome://global/content/bindings/videocontrols.xml#timeThumb"); |
michael@0 | 15 | } |
michael@0 | 16 | |
michael@0 | 17 | .playButton, |
michael@0 | 18 | .muteButton, |
michael@0 | 19 | .scrubber .scale-slider, |
michael@0 | 20 | .volumeControl .scale-slider { |
michael@0 | 21 | -moz-user-focus: none; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | .mediaControlsFrame { |
michael@0 | 25 | direction: ltr; |
michael@0 | 26 | /* Prevent unwanted style inheritance. See bug 554717. */ |
michael@0 | 27 | text-align: left; |
michael@0 | 28 | list-style-image: none !important; |
michael@0 | 29 | font: normal normal normal 100%/normal sans-serif !important; |
michael@0 | 30 | text-decoration: none !important; |
michael@0 | 31 | } |
michael@0 | 32 | |
michael@0 | 33 | .controlsSpacer[hideCursor] { |
michael@0 | 34 | cursor: none; |
michael@0 | 35 | } |
michael@0 | 36 | |
michael@0 | 37 | /* CSS Transitions |
michael@0 | 38 | * |
michael@0 | 39 | * These are overriden by the default theme; the rules here just |
michael@0 | 40 | * provide a fallback to drive the required transitionend event |
michael@0 | 41 | * (in case a 3rd party theme does not provide transitions). |
michael@0 | 42 | */ |
michael@0 | 43 | .controlBar:not([immediate]) { |
michael@0 | 44 | transition-property: opacity; |
michael@0 | 45 | transition-duration: 1ms; |
michael@0 | 46 | } |
michael@0 | 47 | .controlBar[fadeout] { |
michael@0 | 48 | opacity: 0; |
michael@0 | 49 | } |
michael@0 | 50 | .volumeStack:not([immediate]) { |
michael@0 | 51 | transition-property: opacity, margin-top; |
michael@0 | 52 | transition-duration: 1ms, 1ms; |
michael@0 | 53 | } |
michael@0 | 54 | .volumeStack[fadeout] { |
michael@0 | 55 | opacity: 0; |
michael@0 | 56 | margin-top: 0; |
michael@0 | 57 | } |
michael@0 | 58 | .statusOverlay:not([immediate]) { |
michael@0 | 59 | transition-property: opacity; |
michael@0 | 60 | transition-duration: 1ms; |
michael@0 | 61 | transition-delay: 750ms; |
michael@0 | 62 | } |
michael@0 | 63 | .statusOverlay[fadeout] { |
michael@0 | 64 | opacity: 0; |
michael@0 | 65 | } |
michael@0 | 66 | |
michael@0 | 67 | /* Statistics formatting */ |
michael@0 | 68 | html|td.statLabel { |
michael@0 | 69 | font-weight: bold; |
michael@0 | 70 | max-width: 20%; |
michael@0 | 71 | white-space: nowrap; |
michael@0 | 72 | } |
michael@0 | 73 | html|td.statValue { |
michael@0 | 74 | max-width: 30%; |
michael@0 | 75 | } |
michael@0 | 76 | html|td.filename { |
michael@0 | 77 | max-width: 80%; |
michael@0 | 78 | white-space: nowrap; |
michael@0 | 79 | overflow: hidden; |
michael@0 | 80 | text-overflow: ellipsis; |
michael@0 | 81 | } |
michael@0 | 82 | html|span.statActivity > html|span { |
michael@0 | 83 | display: none; |
michael@0 | 84 | } |
michael@0 | 85 | html|span.statActivity[activity="paused"] > html|span.statActivityPaused, |
michael@0 | 86 | html|span.statActivity[activity="playing"] > html|span.statActivityPlaying, |
michael@0 | 87 | html|span.statActivity[activity="ended"] > html|span.statActivityEnded, |
michael@0 | 88 | html|span.statActivity[seeking] > html|span.statActivitySeeking { |
michael@0 | 89 | display: inline; |
michael@0 | 90 | } |
michael@0 | 91 | |
michael@0 | 92 | .controlBar[size="hidden"], |
michael@0 | 93 | .controlBar[size="small"] .durationBox, |
michael@0 | 94 | .controlBar[size="small"] .durationLabel, |
michael@0 | 95 | .controlBar[size="small"] .positionLabel, |
michael@0 | 96 | .controlBar[size="small"] .volumeStack { |
michael@0 | 97 | visibility: collapse; |
michael@0 | 98 | } |
michael@0 | 99 | |
michael@0 | 100 | .controlBar[size="small"] .scrubberStack, |
michael@0 | 101 | .controlBar[size="small"] .backgroundBar, |
michael@0 | 102 | .controlBar[size="small"] .bufferBar, |
michael@0 | 103 | .controlBar[size="small"] .progressBar, |
michael@0 | 104 | .controlBar[size="small"] .scrubber { |
michael@0 | 105 | visibility: hidden; |
michael@0 | 106 | } |
michael@0 | 107 | |
michael@0 | 108 | /* Error description formatting */ |
michael@0 | 109 | .errorLabel { |
michael@0 | 110 | display: none; |
michael@0 | 111 | } |
michael@0 | 112 | |
michael@0 | 113 | [error="errorAborted"] > [anonid="errorAborted"], |
michael@0 | 114 | [error="errorNetwork"] > [anonid="errorNetwork"], |
michael@0 | 115 | [error="errorDecode"] > [anonid="errorDecode"], |
michael@0 | 116 | [error="errorSrcNotSupported"] > [anonid="errorSrcNotSupported"], |
michael@0 | 117 | [error="errorNoSource"] > [anonid="errorNoSource"], |
michael@0 | 118 | [error="errorGeneric"] > [anonid="errorGeneric"] { |
michael@0 | 119 | display: inline; |
michael@0 | 120 | } |