-
Notifications
You must be signed in to change notification settings - Fork 56
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
getPackageDirectoryEntry in service workers #471
Comments
It might be possible to "re-base" it on the new File System Access API, which AFAIK uses a very similar API for File and Directory entries that are allowed in a service worker. As for the missing stuff that will need to be emulated or dropped, someone should look at the old FileSystem API and list them. |
@dotproto Here's an update from Tim: https://chromium-review.googlesource.com/c/chromium/src/+/5112904 |
One other thing:
|
That commit is unrelated and won't help because service workers don't have DOM, which is required by this API. |
Sorry about that. I'm playing catchup, so moving a bit fast. Too fast, clearly. |
Yes. This is done.
Not at any point in the near future.
We're unlikely to add anything specifically for this. Depending on the use case, alternatives exist (e.g., if you just need file content, you can fetch() it). This is a pretty old API that we've talked about removing in the past, but it has non-trivial usage. |
Issue mdn/content#2986 notes that the MDN documentation for
runtime.getPackageDirectoryEntry()
isn't accurate. In order to help resolve that documentation issue, I'd like to ask the Chrome team for clarification on a couple of questions.In the future will
runtime.getPackageDirectoryEntry()
return a promise in Chrome?Does Chrome plan to support this method in service workers?
I assume that Chrome didn't expose
getPackageDirectoryEntry()
in service workers because theDirectoryEntry
interface isn't exposed in that context. If true, does Chrome have plans to enable extensions to access similar capabilities or data using an alternative API?The text was updated successfully, but these errors were encountered: