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 /* ===== textbox.css ==================================================
6 == Styles used by the XUL textbox element.
7 ======================================================================= */
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10 @namespace html url("http://www.w3.org/1999/xhtml");
12 /* ::::: textbox ::::: */
14 textbox {
15 -moz-appearance: textfield;
16 cursor: text;
17 margin: 2px 4px;
18 border: 2px solid;
19 -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
20 -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
21 -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
22 -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
23 padding: 2px 3px 3px;
24 -moz-padding-start: 5px;
25 background-color: -moz-Field;
26 color: -moz-FieldText;
27 }
29 html|*.textbox-input,
30 html|*.textbox-textarea {
31 margin: 0px !important;
32 border: none !important;
33 padding: 0px !important;
34 background-color: inherit;
35 color: inherit;
36 font: inherit;
37 }
39 .textbox-contextmenu {
40 cursor: default;
41 }
43 /* ..... readonly state ..... */
45 textbox[readonly="true"] {
46 background-color: -moz-Dialog;
47 color: -moz-DialogText;
48 }
50 /* ..... disabled state ..... */
52 textbox[disabled="true"] {
53 cursor: default;
54 background-color: -moz-Dialog;
55 color: GrayText;
56 }
58 /* ::::: plain textbox ::::: */
60 textbox.plain {
61 -moz-appearance: none !important;
62 background-color: transparent;
63 padding: 0px !important;
64 margin: 0px !important;
65 border: none !important;
66 }
68 /* ::::: search textbox ::::: */
70 .textbox-search-icon {
71 list-style-image: url(moz-icon://stock/gtk-find?size=menu);
72 }
74 .textbox-search-clear {
75 list-style-image: url(moz-icon://stock/gtk-clear?size=menu);
76 }
78 .textbox-search-icon[searchbutton]:not([disabled]) ,
79 .textbox-search-clear:not([disabled]) {
80 cursor: pointer;
81 }
83 /* ::::: textboxes inside toolbarpaletteitems ::::: */
85 toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
86 visibility: hidden;
87 }
89 /* ::::: context menu ::::: */
91 menuitem:not([type]) {
92 -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
93 }
95 menuitem[cmd="cmd_undo"] {
96 list-style-image: url("moz-icon://stock/gtk-undo?size=menu");
97 }
99 menuitem[cmd="cmd_undo"][disabled] {
100 list-style-image: url("moz-icon://stock/gtk-undo?size=menu&state=disabled");
101 }
103 menuitem[cmd="cmd_cut"] {
104 list-style-image: url("moz-icon://stock/gtk-cut?size=menu");
105 }
107 menuitem[cmd="cmd_cut"][disabled] {
108 list-style-image: url("moz-icon://stock/gtk-cut?size=menu&state=disabled");
109 }
111 menuitem[cmd="cmd_copy"] {
112 list-style-image: url("moz-icon://stock/gtk-copy?size=menu");
113 }
115 menuitem[cmd="cmd_copy"][disabled] {
116 list-style-image: url("moz-icon://stock/gtk-copy?size=menu&state=disabled");
117 }
119 menuitem[cmd="cmd_paste"] {
120 list-style-image: url("moz-icon://stock/gtk-paste?size=menu");
121 }
123 menuitem[cmd="cmd_paste"][disabled] {
124 list-style-image: url("moz-icon://stock/gtk-paste?size=menu&state=disabled");
125 }
127 menuitem[cmd="cmd_delete"] {
128 list-style-image: url("moz-icon://stock/gtk-delete?size=menu");
129 }
131 menuitem[cmd="cmd_delete"][disabled] {
132 list-style-image: url("moz-icon://stock/gtk-delete?size=menu&state=disabled");
133 }
135 menuitem[cmd="cmd_selectAll"] {
136 list-style-image: url("moz-icon://stock/gtk-select-all?size=menu");
137 }
139 menuitem[cmd="cmd_selectAll"][disabled] {
140 list-style-image: url("moz-icon://stock/gtk-select-all?size=menu&state=disabled");
141 }