Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: What File and Directory Entries API features aren’t supported in mobile? #35

Open
sideshowbarker opened this issue May 3, 2020 · 0 comments
Labels

Comments

@sideshowbarker
Copy link

sideshowbarker commented May 3, 2020

What File and Directory Entries API features aren’t supported in mobile?

I’m updating https://github.com/mdn/browser-compat-data for File and Directory Entries API features and am wondering what support to indicate for Chrome for Android and for iOS Safari.

In trying the test cases in https://wpt.live/entries-api/ I don’t see a way to run most of them on mobile — because they rely on doing drag-and-drop into the browser window, and I don’t know of any way to actually drag something from the browser window.

So I dunno maybe DataTransferItem.prototype.webkitGetAsEntry() could be considered as not supported on mobile? I mean just because of the platform not exposing any way to do drag and drop into a browser window?

But looking at the https://caniuse.com/#feat=input-file-directory Can I Use page, I see it shows the webkitdirectory content attribute as not supported in iOS Safari or Chrome for Android.

Maybe that’s because neither platform’s file picker has a way to actually select a directory/folder?

I know that when I try the https://wpt.live/entries-api/file-webkitRelativePath-manual.html test case in Chrome for Android and iOS Safari, I do see that the platform file pickers don’t seem to provide any way to select directories/folders.

On the other hand, the underlying browser engines on both Chrome for Android and iOS Safari do implement and expose the relevant APIs defined in this spec — so the browser-engine support is there in those engines. And so if the platform ever were to change in a way that enabled drag-and-drop into a browser window and that exposed directory-selecting in the file picker, then things would already just work as expected, I guess?

So given all that, I’m not sure for https://github.com/mdn/browser-compat-data what’s best to indicate about mobile-browser support for features in this spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant