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 | richlistitem[type="download"] { |
michael@0 | 6 | -moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-starting'); |
michael@0 | 7 | -moz-box-orient: vertical; |
michael@0 | 8 | } |
michael@0 | 9 | |
michael@0 | 10 | richlistitem[type="download"][state="0"] { |
michael@0 | 11 | -moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-downloading'); |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | richlistitem[type="download"][state="1"] { |
michael@0 | 15 | -moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-done'); |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | richlistitem[type="download"][state="2"] { |
michael@0 | 19 | -moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-failed'); |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | richlistitem[type="download"][state="3"] { |
michael@0 | 23 | -moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-canceled'); |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | richlistitem[type="download"][state="4"] { |
michael@0 | 27 | -moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-paused'); |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | richlistitem[type="download"][state="6"] { |
michael@0 | 31 | -moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-blocked-parental'); |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | richlistitem[type="download"][state="7"] { |
michael@0 | 35 | -moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-scanning'); |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | richlistitem[type="download"][state="8"] { |
michael@0 | 39 | -moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-dirty'); |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | richlistitem[type="download"][state="9"] { |
michael@0 | 43 | -moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-blocked-policy'); |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | /* Only focus buttons in the selected item*/ |
michael@0 | 47 | richlistitem[type="download"]:not([selected="true"]) button { |
michael@0 | 48 | -moz-user-focus: none; |
michael@0 | 49 | } |
michael@0 | 50 |