Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /* ===== toolbarbutton.css =====================================================
6 == Styles used by the XUL button element.
7 ======================================================================= */
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
11 /* ::::: toolbarbutton ::::: */
13 toolbarbutton {
14 -moz-appearance: toolbarbutton;
15 -moz-box-align: center;
16 -moz-box-pack: center;
17 margin: 0;
18 padding: 3px;
19 color: -moz-DialogText;
20 }
22 toolbarbutton:-moz-lwtheme {
23 text-shadow: none;
24 }
26 .toolbarbutton-icon[label]:not([label=""]),
27 .toolbarbutton-icon[type="menu"] {
28 -moz-margin-end: 2px;
29 }
31 .toolbarbutton-text {
32 margin: 0 !important;
33 text-align: center;
34 }
36 toolbarbutton.tabbable {
37 -moz-user-focus: normal !important;
38 }
40 toolbarbutton:hover {
41 color: -moz-buttonhovertext;
42 }
44 toolbarbutton:hover:active,
45 toolbarbutton[open="true"] {
46 padding-top: 4px;
47 padding-bottom: 2px;
48 -moz-padding-start: 4px;
49 -moz-padding-end: 2px;
50 color: ButtonText;
51 }
53 toolbarbutton[disabled="true"],
54 toolbarbutton[disabled="true"]:hover,
55 toolbarbutton[disabled="true"]:hover:active,
56 toolbarbutton[disabled="true"][open="true"] {
57 padding: 3px;
58 color: GrayText;
59 }
61 toolbarbutton[checked="true"]:not(:hover) {
62 color: ButtonText;
63 }
65 toolbarbutton:-moz-lwtheme:not(:hover):not([checked="true"]):not([open="true"]):not([disabled="true"]) {
66 color: inherit;
67 text-shadow: inherit;
68 }
70 /* ::::: toolbarbutton menu ::::: */
72 .toolbarbutton-menu-dropmarker {
73 -moz-appearance: toolbarbutton-dropdown !important;
74 list-style-image: none;
75 -moz-image-region: auto;
76 padding: 0;
77 margin: 0;
78 }
80 .toolbarbutton-menu-dropmarker[disabled="true"] {
81 padding: 0 !important;
82 }
84 /* ::::: toolbarbutton menu-button ::::: */
86 toolbarbutton[type="menu-button"] {
87 -moz-box-align: stretch;
88 -moz-appearance: dualbutton;
89 -moz-box-orient: horizontal !important;
90 }
92 toolbarbutton[type="menu-button"],
93 toolbarbutton[type="menu-button"]:hover,
94 toolbarbutton[type="menu-button"]:hover:active,
95 toolbarbutton[type="menu-button"][open="true"],
96 toolbarbutton[type="menu-button"][disabled="true"],
97 toolbarbutton[type="menu-button"][disabled="true"]:hover,
98 toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
99 padding: 0 !important;
100 }
102 .toolbarbutton-menubutton-button {
103 -moz-box-align: center;
104 -moz-box-pack: center;
105 -moz-box-orient: vertical;
106 }
108 /* .......... dropmarker .......... */
110 .toolbarbutton-menubutton-dropmarker {
111 margin: 0 3px;
112 -moz-appearance: toolbarbutton-dropdown !important;
113 list-style-image: none;
114 -moz-image-region: auto;
115 }