dom/webidl/MozNDEFRecord.webidl

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.

     1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     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/. */
     6 /* Copyright © 2013 Deutsche Telekom, Inc. */
     8 [Constructor(octet tnf, optional Uint8Array type, optional Uint8Array id, optional Uint8Array payload)]
     9 interface MozNDEFRecord
    10 {
    11   /**
    12    * Type Name Field (3-bits) - Specifies the NDEF record type in general.
    13    *   tnf_empty: 0x00
    14    *   tnf_well_known: 0x01
    15    *   tnf_mime_media: 0x02
    16    *   tnf_absolute_uri: 0x03
    17    *   tnf_external type: 0x04
    18    *   tnf_unknown: 0x05
    19    *   tnf_unchanged: 0x06
    20    *   tnf_reserved: 0x07
    21    */
    22   [Constant]
    23   readonly attribute octet tnf;
    25   /**
    26    * type - Describes the content of the payload. This can be a mime type.
    27    */
    28   [Constant]
    29   readonly attribute Uint8Array? type;
    31   /**
    32    * id - Identifer is application dependent.
    33    */
    34   [Constant]
    35   readonly attribute Uint8Array? id;
    37   /**
    38    * payload - Binary data blob. The meaning of this field is application
    39    * dependent.
    40    */
    41   [Constant]
    42   readonly attribute Uint8Array? payload;
    43 };

mercurial