dom/bindings/Errors.msg

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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 /*
michael@0 6 * The format for each error message is:
michael@0 7 *
michael@0 8 * MSG_DEF(<SYMBOLIC_NAME>, <ARGUMENT_COUNT>, <FORMAT_STRING>)
michael@0 9 *
michael@0 10 * where
michael@0 11 *
michael@0 12 * <SYMBOLIC_NAME> is a legal C++ identifer that will be used in the source.
michael@0 13 *
michael@0 14 * <ARGUMENT_COUNT> is an integer literal specifying the total number of
michael@0 15 * replaceable arguments in the following format string.
michael@0 16 *
michael@0 17 * <FORMAT_STRING> is a string literal, containing <ARGUMENT_COUNT> sequences
michael@0 18 * {X} where X is an integer representing the argument number that will
michael@0 19 * be replaced with a string value when the error is reported.
michael@0 20 */
michael@0 21
michael@0 22 MSG_DEF(MSG_INVALID_ENUM_VALUE, 3, "{0} '{1}' is not a valid value for enumeration {2}.")
michael@0 23 MSG_DEF(MSG_MISSING_ARGUMENTS, 1, "Not enough arguments to {0}.")
michael@0 24 MSG_DEF(MSG_NOT_OBJECT, 1, "{0} is not an object.")
michael@0 25 MSG_DEF(MSG_NOT_CALLABLE, 1, "{0} is not callable.")
michael@0 26 MSG_DEF(MSG_DOES_NOT_IMPLEMENT_INTERFACE, 2, "{0} does not implement interface {1}.")
michael@0 27 MSG_DEF(MSG_METHOD_THIS_DOES_NOT_IMPLEMENT_INTERFACE, 2, "'{0}' called on an object that does not implement interface {1}.")
michael@0 28 MSG_DEF(MSG_METHOD_THIS_UNWRAPPING_DENIED, 1, "Permission to call '{0}' denied.")
michael@0 29 MSG_DEF(MSG_GETTER_THIS_DOES_NOT_IMPLEMENT_INTERFACE, 2, "'{0}' getter called on an object that does not implement interface {1}.")
michael@0 30 MSG_DEF(MSG_GETTER_THIS_UNWRAPPING_DENIED, 1, "Permission to call '{0}' getter denied.")
michael@0 31 MSG_DEF(MSG_SETTER_THIS_DOES_NOT_IMPLEMENT_INTERFACE, 2, "'{0}' setter called on an object that does not implement interface {1}.")
michael@0 32 MSG_DEF(MSG_SETTER_THIS_UNWRAPPING_DENIED, 1, "Permission to call '{0}' setter denied.")
michael@0 33 MSG_DEF(MSG_THIS_DOES_NOT_IMPLEMENT_INTERFACE, 1, "\"this\" object does not implement interface {0}.")
michael@0 34 MSG_DEF(MSG_NOT_IN_UNION, 2, "{0} could not be converted to any of: {1}.")
michael@0 35 MSG_DEF(MSG_ILLEGAL_CONSTRUCTOR, 0, "Illegal constructor.")
michael@0 36 MSG_DEF(MSG_CONSTRUCTOR_WITHOUT_NEW, 1, "Constructor {0} requires 'new'")
michael@0 37 MSG_DEF(MSG_NO_INDEXED_SETTER, 1, "{0} doesn't have an indexed property setter.")
michael@0 38 MSG_DEF(MSG_NO_NAMED_SETTER, 1, "{0} doesn't have a named property setter.")
michael@0 39 MSG_DEF(MSG_ENFORCE_RANGE_NON_FINITE, 1, "Non-finite value is out of range for {0}.")
michael@0 40 MSG_DEF(MSG_ENFORCE_RANGE_OUT_OF_RANGE, 1, "Value is out of range for {0}.")
michael@0 41 MSG_DEF(MSG_NOT_SEQUENCE, 1, "{0} can't be converted to a sequence.")
michael@0 42 MSG_DEF(MSG_NOT_DICTIONARY, 1, "{0} can't be converted to a dictionary.")
michael@0 43 MSG_DEF(MSG_OVERLOAD_RESOLUTION_FAILED, 3, "Argument {0} is not valid for any of the {1}-argument overloads of {2}.")
michael@0 44 MSG_DEF(MSG_GLOBAL_NOT_NATIVE, 0, "Global is not a native object.")
michael@0 45 MSG_DEF(MSG_ENCODING_NOT_SUPPORTED, 1, "The given encoding '{0}' is not supported.")
michael@0 46 MSG_DEF(MSG_DOM_ENCODING_NOT_UTF, 0, "The encoding must be utf-8, utf-16, or utf-16be.")
michael@0 47 MSG_DEF(MSG_NOT_FINITE, 1, "{0} is not a finite floating-point value.")
michael@0 48 MSG_DEF(MSG_INVALID_VERSION, 0, "0 (Zero) is not a valid database version.")
michael@0 49 MSG_DEF(MSG_INVALID_BYTESTRING, 2, "Cannot convert string to ByteString because the character"
michael@0 50 " at index {0} has value {1} which is greater than 255.")
michael@0 51 MSG_DEF(MSG_NOT_DATE, 1, "{0} is not a date.")
michael@0 52 MSG_DEF(MSG_INVALID_ADVANCE_COUNT, 0, "0 (Zero) is not a valid advance count.")
michael@0 53 MSG_DEF(MSG_DEFINEPROPERTY_ON_GSP, 0, "Not allowed to define a property on the named properties object.")
michael@0 54 MSG_DEF(MSG_INVALID_URL, 1, "{0} is not a valid URL.")
michael@0 55 MSG_DEF(MSG_METADATA_NOT_CONFIGURED, 0, "Either size or lastModified should be true.")
michael@0 56 MSG_DEF(MSG_INVALID_READ_SIZE, 0, "0 (Zero) is not a valid read size.")

mercurial