dom/webidl/LockedFile.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 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     3  * You can obtaone at http://mozilla.org/MPL/2.0/. */
     5 dictionary DOMFileMetadataParameters
     6 {
     7   boolean size = true;
     8   boolean lastModified = true;
     9 };
    11 interface LockedFile : EventTarget
    12 {
    13   readonly attribute FileHandle? fileHandle;
    14   readonly attribute FileMode mode;
    15   readonly attribute boolean active;
    16   attribute unsigned long long? location;
    18   [Throws]
    19   FileRequest? getMetadata(optional DOMFileMetadataParameters parameters);
    20   [Throws]
    21   FileRequest? readAsArrayBuffer(unsigned long long size);
    22   [Throws]
    23   FileRequest? readAsText(unsigned long long size,
    24                          optional DOMString? encoding = null);
    26   [Throws]
    27   FileRequest? write(ArrayBuffer value);
    28   [Throws]
    29   FileRequest? write(Blob value);
    30   [Throws]
    31   FileRequest? write(DOMString value);
    32   [Throws]
    33   FileRequest? append(ArrayBuffer value);
    34   [Throws]
    35   FileRequest? append(Blob value);
    36   [Throws]
    37   FileRequest? append(DOMString value);
    38   [Throws]
    39   FileRequest? truncate(optional unsigned long long size);
    40   [Throws]
    41   FileRequest? flush();
    42   [Throws]
    43   void abort();
    45   attribute EventHandler oncomplete;
    46   attribute EventHandler onabort;
    47   attribute EventHandler onerror;
    48 };

mercurial