dom/webidl/FormData.webidl
author Jared Wein <jwein@mozilla.com>
Tue, 12 May 2020 02:00:19 +0000
changeset 589278 cdf352f02ac4e034be96d14031fd6cc37dbe9ab9
parent 557579 9298e3ec3f1ff2caf60deb9471bc2e9f2ebe7948
permissions -rw-r--r--
Bug 1636511 - Disable the OS auth feature in about:logins on Release and Beta. r=MattN a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D74676

/* -*- Mode: IDL; 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/.
 *
 * The origin of this IDL file is
 * http://xhr.spec.whatwg.org
 */

typedef (Blob or Directory or USVString) FormDataEntryValue;

[Exposed=(Window,Worker)]
interface FormData {
  [Throws]
  constructor(optional HTMLFormElement form);

  [Throws]
  void append(USVString name, Blob value, optional USVString filename);
  [Throws]
  void append(USVString name, USVString value);
  void delete(USVString name);
  FormDataEntryValue? get(USVString name);
  sequence<FormDataEntryValue> getAll(USVString name);
  boolean has(USVString name);
  [Throws]
  void set(USVString name, Blob value, optional USVString filename);
  [Throws]
  void set(USVString name, USVString value);
  iterable<USVString, FormDataEntryValue>;
};