Files
roytam1 6eca2ddf0a import changes from tenfourfox-history:
- #493: image max-width M823483 M1247929 (1e8048f6f)
- closes #493: fix height for flexbox case M1030952 M1180107 (3d108a56a) (with fix for msvc)
- closes #484: wallpaper unrenderable icons getting into Cocoa menus (35862d42c)
- revert UA fx60 change, add as new agent, add IE11 (3698c7959)
- #469: a few more hosts for adblock (a2c8faf0b)
- #491: M1443891 M1444231 M1443092 M1448774 M1452416 (9661a95c2)
- #491: update certs and pins (8aaf95173)
- #491: backout M1452416 for bustage, we'll think of another way to implement this (f6c7b6f4a)
- fix for x86 by Ken/MacPorts (cadf0e4e0)
- #497: improve DOM KeyboardEvent support (5eacbf2ea)
- #483: okay, let's try tuning Purple again now that 485 is fixed (aabc8bc25)
- #469: more adblock entries (29b022d4d)
- #399: tune up HTTP cache M1248003 M1248389 (f5d414283)
- #491: new fix for M1452416 (3f1408e19)
- #491: M1393367 M1452202 (c4a05454d)
- #491: update certs and pins (3642b952f)
- #491: M1452075 (cb09bc27d)
- #469: and a couple more (efceaf1c0)
- #491: M1449548 (adapted for 45) (05c79ddd2)
- #491: update certs and pins (again) (619952aa4)
- #499: same-site cookie support (64dc7e7f8)
2018-05-31 21:31:50 +08:00

81 lines
2.5 KiB
Plaintext

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsICookie.idl"
/**
* Main cookie object interface for use by consumers:
* extends nsICookie, a frozen interface for external
* access of cookie objects
*/
// Rev slightly different UUID for TenFourFox since we
// are, indeed, slightly different than Firefox (see
// TenFourFix issue 499).
[scriptable, uuid(be205daf-4f4c-11e6-80ba-ea5cd310c1a8)]
interface nsICookie2 : nsICookie
{
const uint32_t SAMESITE_UNSET = 0;
const uint32_t SAMESITE_LAX = 1;
const uint32_t SAMESITE_STRICT = 2;
/**
* the host (possibly fully qualified) of the cookie,
* without a leading dot to represent if it is a
* domain cookie.
*/
readonly attribute AUTF8String rawHost;
/**
* true if the cookie is a session cookie.
* note that expiry time will also be honored
* for session cookies (see below); thus, whichever is
* the more restrictive of the two will take effect.
*/
readonly attribute boolean isSession;
/**
* the actual expiry time of the cookie, in seconds
* since midnight (00:00:00), January 1, 1970 UTC.
*
* this is distinct from nsICookie::expires, which
* has different and obsolete semantics.
*/
readonly attribute int64_t expiry;
/**
* true if the cookie is an http only cookie
*/
readonly attribute boolean isHttpOnly;
/**
* the creation time of the cookie, in microseconds
* since midnight (00:00:00), January 1, 1970 UTC.
*/
readonly attribute int64_t creationTime;
/**
* the last time the cookie was accessed (i.e. created,
* modified, or read by the server), in microseconds
* since midnight (00:00:00), January 1, 1970 UTC.
*
* note that this time may be approximate.
*/
readonly attribute int64_t lastAccessed;
/**
* the sameSite attribute; this controls the cookie behavior for cross-site
* requests as per
* https://tools.ietf.org/html/draft-west-first-party-cookies-07
*
* This should be one of:
* - SAMESITE_UNSET - the SameSite attribute is not present
* - SAMESITE_LAX - the SameSite attribute is present, but not strict
* - SAMESITE_STRICT - the SameSite attribute is present and strict
*/
readonly attribute int32_t sameSite;
};