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 | // IWYU pragma: private, include "nsEditProperty.h" |
michael@0 | 6 | |
michael@0 | 7 | /****** |
michael@0 | 8 | |
michael@0 | 9 | This file contains the list of all editor nsIAtoms and their values |
michael@0 | 10 | |
michael@0 | 11 | It is designed to be used as inline input to nsEditProperty.cpp *only* |
michael@0 | 12 | through the magic of C preprocessing. |
michael@0 | 13 | |
michael@0 | 14 | All entries must be enclosed in the macro EDITOR_ATOM which will have cruel |
michael@0 | 15 | and unusual things done to it |
michael@0 | 16 | |
michael@0 | 17 | It is recommended (but not strictly necessary) to keep all entries |
michael@0 | 18 | in alphabetical order |
michael@0 | 19 | |
michael@0 | 20 | The first argument to EDITOR_ATOM is the C++ identifier of the atom |
michael@0 | 21 | The second argument is the string value of the atom |
michael@0 | 22 | |
michael@0 | 23 | ******/ |
michael@0 | 24 | |
michael@0 | 25 | EDITOR_ATOM(a, "a") |
michael@0 | 26 | EDITOR_ATOM(abbr, "abbr") |
michael@0 | 27 | EDITOR_ATOM(acronym, "acronym") |
michael@0 | 28 | EDITOR_ATOM(address, "address") |
michael@0 | 29 | EDITOR_ATOM(article, "article") |
michael@0 | 30 | EDITOR_ATOM(aside, "aside") |
michael@0 | 31 | EDITOR_ATOM(b, "b") |
michael@0 | 32 | EDITOR_ATOM(bdo, "bdo") |
michael@0 | 33 | EDITOR_ATOM(big, "big") |
michael@0 | 34 | EDITOR_ATOM(blockquote, "blockquote") |
michael@0 | 35 | EDITOR_ATOM(body, "body") |
michael@0 | 36 | EDITOR_ATOM(br, "br") |
michael@0 | 37 | EDITOR_ATOM(button, "button") |
michael@0 | 38 | EDITOR_ATOM(caption, "caption") |
michael@0 | 39 | EDITOR_ATOM(center, "center") |
michael@0 | 40 | EDITOR_ATOM(cite, "cite") |
michael@0 | 41 | EDITOR_ATOM(code, "code") |
michael@0 | 42 | EDITOR_ATOM(col, "col") |
michael@0 | 43 | EDITOR_ATOM(colgroup, "colgroup") |
michael@0 | 44 | EDITOR_ATOM(color, "color") |
michael@0 | 45 | EDITOR_ATOM(cssBackgroundColor, "background-color") |
michael@0 | 46 | EDITOR_ATOM(cssBackgroundImage, "background-image") |
michael@0 | 47 | EDITOR_ATOM(cssBorder, "border") |
michael@0 | 48 | EDITOR_ATOM(cssBottom, "bottom") |
michael@0 | 49 | EDITOR_ATOM(cssCaptionSide, "caption-side") |
michael@0 | 50 | EDITOR_ATOM(cssCmUnit, "cm") |
michael@0 | 51 | EDITOR_ATOM(cssColor, "color") |
michael@0 | 52 | EDITOR_ATOM(cssDirection, "direction") |
michael@0 | 53 | EDITOR_ATOM(cssEmUnit, "em") |
michael@0 | 54 | EDITOR_ATOM(cssExUnit, "ex") |
michael@0 | 55 | EDITOR_ATOM(cssFloat, "float") |
michael@0 | 56 | EDITOR_ATOM(cssFontFamily, "font-family") |
michael@0 | 57 | EDITOR_ATOM(cssFontSize, "font-size") |
michael@0 | 58 | EDITOR_ATOM(cssFontStyle, "font-style") |
michael@0 | 59 | EDITOR_ATOM(cssFontWeight, "font-weight") |
michael@0 | 60 | EDITOR_ATOM(cssHeight, "height") |
michael@0 | 61 | EDITOR_ATOM(cssInUnit, "in") |
michael@0 | 62 | EDITOR_ATOM(cssLeft, "left") |
michael@0 | 63 | EDITOR_ATOM(cssListStyleType, "list-style-type") |
michael@0 | 64 | EDITOR_ATOM(cssMarginLeft, "margin-left") |
michael@0 | 65 | EDITOR_ATOM(cssMarginRight, "margin-right") |
michael@0 | 66 | EDITOR_ATOM(cssMmUnit, "mm") |
michael@0 | 67 | EDITOR_ATOM(cssMozUserModify, "-moz-user-modify") |
michael@0 | 68 | EDITOR_ATOM(cssMozUserSelect, "-moz-user-select") |
michael@0 | 69 | EDITOR_ATOM(cssPcUnit, "pc") |
michael@0 | 70 | EDITOR_ATOM(cssPercentUnit, "%") |
michael@0 | 71 | EDITOR_ATOM(cssPosition, "position") |
michael@0 | 72 | EDITOR_ATOM(cssPtUnit, "pt") |
michael@0 | 73 | EDITOR_ATOM(cssPxUnit, "px") |
michael@0 | 74 | EDITOR_ATOM(cssRight, "right") |
michael@0 | 75 | EDITOR_ATOM(cssTextAlign, "text-align") |
michael@0 | 76 | EDITOR_ATOM(cssTextDecoration, "text-decoration") |
michael@0 | 77 | EDITOR_ATOM(cssTop, "top") |
michael@0 | 78 | EDITOR_ATOM(cssVerticalAlign, "vertical-align") |
michael@0 | 79 | EDITOR_ATOM(cssWhitespace, "white-space") |
michael@0 | 80 | EDITOR_ATOM(cssWidth, "width") |
michael@0 | 81 | EDITOR_ATOM(cssZIndex, "z-index") |
michael@0 | 82 | EDITOR_ATOM(data, "data") |
michael@0 | 83 | EDITOR_ATOM(datalist, "datalist") |
michael@0 | 84 | EDITOR_ATOM(dd, "dd") |
michael@0 | 85 | EDITOR_ATOM(dfn, "dfn") |
michael@0 | 86 | EDITOR_ATOM(div, "div") |
michael@0 | 87 | EDITOR_ATOM(dl, "dl") |
michael@0 | 88 | EDITOR_ATOM(dt, "dt") |
michael@0 | 89 | EDITOR_ATOM(em, "em") |
michael@0 | 90 | EDITOR_ATOM(face, "face") |
michael@0 | 91 | EDITOR_ATOM(fieldset, "fieldset") |
michael@0 | 92 | EDITOR_ATOM(figcaption, "figcaption") |
michael@0 | 93 | EDITOR_ATOM(figure, "figure") |
michael@0 | 94 | EDITOR_ATOM(font, "font") |
michael@0 | 95 | EDITOR_ATOM(footer, "footer") |
michael@0 | 96 | EDITOR_ATOM(form, "form") |
michael@0 | 97 | EDITOR_ATOM(h1, "h1") |
michael@0 | 98 | EDITOR_ATOM(h2, "h2") |
michael@0 | 99 | EDITOR_ATOM(h3, "h3") |
michael@0 | 100 | EDITOR_ATOM(h4, "h4") |
michael@0 | 101 | EDITOR_ATOM(h5, "h5") |
michael@0 | 102 | EDITOR_ATOM(h6, "h6") |
michael@0 | 103 | EDITOR_ATOM(header, "header") |
michael@0 | 104 | EDITOR_ATOM(head, "head") |
michael@0 | 105 | EDITOR_ATOM(hgroup, "hgroup") |
michael@0 | 106 | EDITOR_ATOM(href, "href") // Use to differentiate between "a" for link, "a" for named anchor |
michael@0 | 107 | EDITOR_ATOM(hr, "hr") |
michael@0 | 108 | EDITOR_ATOM(html, "html") |
michael@0 | 109 | EDITOR_ATOM(i, "i") |
michael@0 | 110 | EDITOR_ATOM(img, "img") |
michael@0 | 111 | EDITOR_ATOM(input, "input") |
michael@0 | 112 | EDITOR_ATOM(kbd, "kbd") |
michael@0 | 113 | EDITOR_ATOM(keygen, "keygen") |
michael@0 | 114 | EDITOR_ATOM(label, "label") |
michael@0 | 115 | EDITOR_ATOM(legend, "legend") |
michael@0 | 116 | EDITOR_ATOM(li, "li") |
michael@0 | 117 | EDITOR_ATOM(main, "main") |
michael@0 | 118 | EDITOR_ATOM(map, "map") |
michael@0 | 119 | EDITOR_ATOM(mark, "mark") |
michael@0 | 120 | EDITOR_ATOM(meter, "meter") |
michael@0 | 121 | EDITOR_ATOM(menuitem, "menuitem") |
michael@0 | 122 | EDITOR_ATOM(mozdirty, "_moz_dirty") |
michael@0 | 123 | EDITOR_ATOM(mozEditorBogusNode, "_moz_editor_bogus_node") |
michael@0 | 124 | EDITOR_ATOM(name, "name") |
michael@0 | 125 | EDITOR_ATOM(nav, "nav") |
michael@0 | 126 | EDITOR_ATOM(noscript, "noscript") |
michael@0 | 127 | EDITOR_ATOM(object, "object") |
michael@0 | 128 | EDITOR_ATOM(ol, "ol") |
michael@0 | 129 | EDITOR_ATOM(output, "output") |
michael@0 | 130 | EDITOR_ATOM(p, "p") |
michael@0 | 131 | EDITOR_ATOM(pre, "pre") |
michael@0 | 132 | EDITOR_ATOM(progress, "progress") |
michael@0 | 133 | EDITOR_ATOM(q, "q") |
michael@0 | 134 | EDITOR_ATOM(samp, "samp") |
michael@0 | 135 | EDITOR_ATOM(script, "script") |
michael@0 | 136 | EDITOR_ATOM(section, "section") |
michael@0 | 137 | EDITOR_ATOM(select, "select") |
michael@0 | 138 | EDITOR_ATOM(size, "size") |
michael@0 | 139 | EDITOR_ATOM(small, "small") |
michael@0 | 140 | EDITOR_ATOM(span, "span") |
michael@0 | 141 | EDITOR_ATOM(s, "s") |
michael@0 | 142 | EDITOR_ATOM(strike, "strike") |
michael@0 | 143 | EDITOR_ATOM(strong, "strong") |
michael@0 | 144 | EDITOR_ATOM(sub, "sub") |
michael@0 | 145 | EDITOR_ATOM(sup, "sup") |
michael@0 | 146 | EDITOR_ATOM(table, "table") |
michael@0 | 147 | EDITOR_ATOM(tbody, "tbody") |
michael@0 | 148 | EDITOR_ATOM(td, "td") |
michael@0 | 149 | EDITOR_ATOM(textarea, "textarea") |
michael@0 | 150 | EDITOR_ATOM(tfoot, "tfoot") |
michael@0 | 151 | EDITOR_ATOM(thead, "thead") |
michael@0 | 152 | EDITOR_ATOM(th, "th") |
michael@0 | 153 | EDITOR_ATOM(time, "time") |
michael@0 | 154 | EDITOR_ATOM(tr, "tr") |
michael@0 | 155 | EDITOR_ATOM(track, "track") |
michael@0 | 156 | EDITOR_ATOM(tt, "tt") |
michael@0 | 157 | EDITOR_ATOM(ul, "ul") |
michael@0 | 158 | EDITOR_ATOM(u, "u") |
michael@0 | 159 | EDITOR_ATOM(var, "var") |