26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
diff --git a/third_party/blink/renderer/core/fileapi/file.h b/third_party/blink/renderer/core/fileapi/file.h
|
|
index 39831f1902c6..fddb013aa122 100644
|
|
--- a/third_party/blink/renderer/core/fileapi/file.h
|
|
+++ b/third_party/blink/renderer/core/fileapi/file.h
|
|
@@ -168,6 +168,9 @@ class CORE_EXPORT File final : public Blob {
|
|
}
|
|
const String& name() const { return name_; }
|
|
|
|
+ // Getter for the path IDL attribute.
|
|
+ const String& path() const { return GetPath(); }
|
|
+
|
|
// Getter for the lastModified IDL attribute,
|
|
// http://dev.w3.org/2006/webapi/FileAPI/#file-attrs
|
|
long long lastModified() const;
|
|
diff --git a/third_party/blink/renderer/core/fileapi/file.idl b/third_party/blink/renderer/core/fileapi/file.idl
|
|
index a74beceda3e7..7196fd5f5f9e 100644
|
|
--- a/third_party/blink/renderer/core/fileapi/file.idl
|
|
+++ b/third_party/blink/renderer/core/fileapi/file.idl
|
|
@@ -32,6 +32,7 @@
|
|
Exposed=(Window,Worker)
|
|
] interface File : Blob {
|
|
readonly attribute DOMString name;
|
|
+ readonly attribute DOMString path;
|
|
readonly attribute long long lastModified;
|
|
|
|
// Non-standard APIs
|