mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-31 03:51:56 +00:00
web-sys: Remove a bunch of mozilla extensions from our webidl
This commit is contained in:
25
crates/web-sys/webidls/enabled/File.webidl
vendored
25
crates/web-sys/webidls/enabled/File.webidl
vendored
@@ -29,28 +29,3 @@ dictionary ChromeFilePropertyBag : FilePropertyBag {
|
||||
DOMString name = "";
|
||||
boolean existenceCheck = true;
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
partial interface File {
|
||||
[BinaryName="relativePath", Func="mozilla::dom::DOMPrefs::WebkitBlinkDirectoryPickerEnabled"]
|
||||
readonly attribute USVString webkitRelativePath;
|
||||
|
||||
[GetterThrows, ChromeOnly, NeedsCallerType]
|
||||
readonly attribute DOMString mozFullPath;
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
// These 2 methods can be used only in these conditions:
|
||||
// - the main-thread
|
||||
// - parent process OR file process OR, only for testing, with pref
|
||||
// `dom.file.createInChild' set to true.
|
||||
[Exposed=(Window)]
|
||||
partial interface File {
|
||||
[ChromeOnly, Throws, NeedsCallerType]
|
||||
static Promise<File> createFromNsIFile(nsIFile file,
|
||||
optional ChromeFilePropertyBag options);
|
||||
|
||||
[ChromeOnly, Throws, NeedsCallerType]
|
||||
static Promise<File> createFromFileName(USVString fileName,
|
||||
optional ChromeFilePropertyBag options);
|
||||
};
|
||||
|
Reference in New Issue
Block a user