You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The webkitRelativePath getter carried over from the File and Directory Entries API in #222 returns "this's relative path, or the empty string if not specified". However, File objects don't have a relative path: relative path only defines what a relative path string looks like.
File should get an associated relative path (a relative path or the empty string, initially the empty string), and the getter should return it. It should be exported, so that HTML can set it when files are selected through webkitdirectory.
That raises the question of what the File serialization steps do with it. I believe at least Chromium preserves webkitRelativePath when a File is structured cloned, but this needs checking across implementations, and WPT doesn't seem to test it.
Activity