Determine type of OPFS file objects
Categories
(Core :: DOM: File, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox115 | --- | fixed |
People
(Reporter: jari, Assigned: jari)
References
(Blocks 1 open bug)
Details
Attachments
(6 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
According to the getFile spec, type attribute of file objects is set to an implementation defined value.
Currently, OPFS is not setting it at all as it needs to be deduced from the name based on some rules.
Since type is already set for the other file objects, OPFS should presumably set the type using the same parsing mechanism.
| Assignee | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
With the fix in bug 1825006 we hit FileBlobImpl::GetTypeInternal, but then fails to call the mime service because we are not in the worker nor in the main thread:
The potential fix is to get a non-worker Runnable and dispatch it to the main thread, but that can block this thread as this is synchronous. Does this sound good to you?
Comment 2•3 years ago
|
||
Another way is to do the same in MakeResolution(). I'd prefer that to be less obtrusive.
Comment 3•3 years ago
|
||
Yet another way is to not depend on the OS here, which sounds more ideal to me for this API.
| Assignee | ||
Comment 4•3 years ago
|
||
| Assignee | ||
Comment 5•3 years ago
|
||
Depends on D175366
| Assignee | ||
Comment 6•3 years ago
|
||
Depends on D175367
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 7•2 years ago
|
||
Depends on D175367
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
Backed out with Bug 1828400 for causing bustage on QuotaCommon.h
| Assignee | ||
Comment 10•2 years ago
|
||
Depends on D175366
| Assignee | ||
Comment 11•2 years ago
|
||
Depends on D177013
Comment 12•2 years ago
|
||
Comment 13•2 years ago
|
||
| bugherder | ||
Comment 14•2 years ago
|
||
Comment 15•2 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•