nsICookieValidation.idl (1139B)
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #include "nsISupports.idl" 7 8 [scriptable, builtinclass, uuid(79c99e25-8b06-4e68-8935-bdbe22fa4010)] 9 interface nsICookieValidation : nsISupports 10 { 11 cenum ValidationError : 32 { 12 eOK, 13 eRejectedEmptyNameAndValue, 14 eRejectedNameValueOversize, 15 eRejectedInvalidCharName, 16 eRejectedInvalidCharValue, 17 eRejectedInvalidPath, 18 eRejectedInvalidDomain, 19 eRejectedInvalidPrefix, 20 eRejectedNoneRequiresSecure, 21 eRejectedPartitionedRequiresSecure, 22 eRejectedHttpOnlyButFromScript, 23 eRejectedSecureButNonHttps, 24 eRejectedForNonSameSiteness, 25 eRejectedAttributePathOversize, 26 eRejectedAttributeDomainOversize, 27 eRejectedAttributeExpiryOversize, 28 }; 29 30 readonly attribute nsICookieValidation_ValidationError result; 31 32 // This returns an empty string if the result is `eOK`. 33 readonly attribute AString errorString; 34 };