Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / webidl / FileSystemHandle.webidl
blob4dbbab983b57246d120c40092ce45ab66b4253e9
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 enum FileSystemHandleKind {
7   "file",
8   "directory",
9 };
11 [Exposed=(Window,Worker), SecureContext, Serializable, Pref="dom.fs.enabled"]
12 interface FileSystemHandle {
13   readonly attribute FileSystemHandleKind kind;
14   readonly attribute USVString name;
16   /* https://whatpr.org/fs/10.html#api-filesystemhandle */
17   [NewObject]
18   Promise<undefined> move(USVString name);
19   [NewObject]
20   Promise<undefined> move(FileSystemDirectoryHandle parent);
21   [NewObject]
22   Promise<undefined> move(FileSystemDirectoryHandle parent, USVString name);
24   [NewObject]
25   Promise<boolean> isSameEntry(FileSystemHandle other);