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 file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | |
michael@0 | 7 | interface nsIDOMMozCellBroadcastEtwsInfo; |
michael@0 | 8 | |
michael@0 | 9 | /** |
michael@0 | 10 | * MozCellBroadcastMessage encapsulates Cell Broadcast short message service |
michael@0 | 11 | * (CBS) messages. |
michael@0 | 12 | */ |
michael@0 | 13 | [scriptable, uuid(6abe65de-6729-41f7-906a-3f3a2dbe30ae)] |
michael@0 | 14 | interface nsIDOMMozCellBroadcastMessage : nsISupports |
michael@0 | 15 | { |
michael@0 | 16 | /** |
michael@0 | 17 | * Indication of the geographical area over which the Message Code is unique, |
michael@0 | 18 | * and the display mode. |
michael@0 | 19 | * |
michael@0 | 20 | * Possible values are: "cell-immediate", "plmn", "location-area" and "cell". |
michael@0 | 21 | */ |
michael@0 | 22 | readonly attribute DOMString gsmGeographicalScope; |
michael@0 | 23 | |
michael@0 | 24 | /** |
michael@0 | 25 | * The Message Code differentiates between messages from the same source and |
michael@0 | 26 | * type (e.g., with the same Message Identifier). |
michael@0 | 27 | */ |
michael@0 | 28 | readonly attribute unsigned short messageCode; |
michael@0 | 29 | |
michael@0 | 30 | /** |
michael@0 | 31 | * Source and type of the message. For example, "Automotive Association" |
michael@0 | 32 | * (= source), "Traffic Reports" (= type) could correspond to one value. The |
michael@0 | 33 | * Message Identifier is coded in binary. |
michael@0 | 34 | */ |
michael@0 | 35 | readonly attribute unsigned short messageId; |
michael@0 | 36 | |
michael@0 | 37 | /** |
michael@0 | 38 | * ISO-639-1 language code for this message. Null if unspecified. |
michael@0 | 39 | */ |
michael@0 | 40 | readonly attribute DOMString language; |
michael@0 | 41 | |
michael@0 | 42 | /** |
michael@0 | 43 | * Text message carried by the message. |
michael@0 | 44 | */ |
michael@0 | 45 | readonly attribute DOMString body; |
michael@0 | 46 | |
michael@0 | 47 | /** |
michael@0 | 48 | * Possible values are "normal", "class-0", "class-1", "class-2", "class-3", |
michael@0 | 49 | * "user-1", and "user-2". |
michael@0 | 50 | */ |
michael@0 | 51 | readonly attribute DOMString messageClass; |
michael@0 | 52 | |
michael@0 | 53 | /** |
michael@0 | 54 | * System time stamp at receival. |
michael@0 | 55 | */ |
michael@0 | 56 | readonly attribute jsval timestamp; // jsval is for Date. |
michael@0 | 57 | |
michael@0 | 58 | /** |
michael@0 | 59 | * Additional ETWS-specific info. |
michael@0 | 60 | */ |
michael@0 | 61 | readonly attribute nsIDOMMozCellBroadcastEtwsInfo etws; |
michael@0 | 62 | |
michael@0 | 63 | /** |
michael@0 | 64 | * Service Category. |
michael@0 | 65 | */ |
michael@0 | 66 | readonly attribute long cdmaServiceCategory; |
michael@0 | 67 | }; |
michael@0 | 68 | |
michael@0 | 69 | /** |
michael@0 | 70 | * ETWS (Earthquake and Tsunami Warning service) Primary Notification message |
michael@0 | 71 | * specific information. |
michael@0 | 72 | */ |
michael@0 | 73 | [scriptable, uuid(af009d9a-f5e8-4573-a6ee-a85118465bed)] |
michael@0 | 74 | interface nsIDOMMozCellBroadcastEtwsInfo : nsISupports |
michael@0 | 75 | { |
michael@0 | 76 | /** |
michael@0 | 77 | * Warning type. Possible values are "earthquake", "tsunami", |
michael@0 | 78 | * "earthquake-tsunami", "test" and "other". |
michael@0 | 79 | */ |
michael@0 | 80 | readonly attribute ACString warningType; |
michael@0 | 81 | |
michael@0 | 82 | /** |
michael@0 | 83 | * Emergency user alert indication. It is used to command mobile terminals to |
michael@0 | 84 | * activate emergency user alert upon the reception of ETWS primary |
michael@0 | 85 | * notification. |
michael@0 | 86 | */ |
michael@0 | 87 | readonly attribute boolean emergencyUserAlert; |
michael@0 | 88 | |
michael@0 | 89 | /** |
michael@0 | 90 | * Message popup indication. It is used to command mobile terminals to |
michael@0 | 91 | * activate message popup upon the reception of ETWS primary notification. |
michael@0 | 92 | */ |
michael@0 | 93 | readonly attribute boolean popup; |
michael@0 | 94 | }; |
michael@0 | 95 |