Closed Bug 1840810 Opened 2 years ago Closed 2 years ago

Preserve known content type on OPFS move and rename without better information

Categories

(Core :: DOM: File, defect, P3)

defect

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: jjalkanen, Assigned: jjalkanen)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Currently, when file system entries are moved or renamed, the content types of files are guessed eagerly. If the new content type cannot be detemined, the value will be unset. Instead, it might be better to keep the old type to allow use cases such as naming "2023-06-28-12345.png" to "giraffes".

Blocks: 1841012
No longer blocks: 1841012
See Also: → 1845304
Attachment #9346532 - Attachment description: Bug 1840810 - Preserve old content type of OPFS files when new type cannot be determined. r=#dom-storage → WIP: Bug 1840810 - Preserve old content type of OPFS files when new type cannot be determined. r=#dom-storage
Attachment #9347390 - Attachment description: Bug 1840810 - Use Verbose instead of Log Severity for QM_OR_ELSE_LOG_VERBOSE. r=#dom-storage → WIP: Bug 1840810 - Use Verbose instead of Log Severity for QM_OR_ELSE_LOG_VERBOSE. r=#dom-storage
Attachment #9347391 - Attachment description: Bug 1840810 - Preserve file content type when new name is unreadable or has no extension. r=#dom-storage → WIP: Bug 1840810 - Preserve file content type when new name is unreadable or has no extension. r=#dom-storage
Attachment #9346532 - Attachment description: WIP: Bug 1840810 - Preserve old content type of OPFS files when new type cannot be determined. r=#dom-storage → Bug 1840810 - Preserve old content type of OPFS files when new type cannot be determined. r=#dom-storage
Attachment #9347390 - Attachment description: WIP: Bug 1840810 - Use Verbose instead of Log Severity for QM_OR_ELSE_LOG_VERBOSE. r=#dom-storage → Bug 1840810 - Use Verbose instead of Log Severity for QM_OR_ELSE_LOG_VERBOSE. r=#dom-storage
Attachment #9347391 - Attachment description: WIP: Bug 1840810 - Preserve file content type when new name is unreadable or has no extension. r=#dom-storage → Bug 1840810 - Preserve file content type when new name is unreadable or has no extension. r=#dom-storage
Pushed by jjalkanen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/933065470eb1 Preserve old content type of OPFS files when new type cannot be determined. r=dom-storage-reviewers,janv https://hg.mozilla.org/integration/autoland/rev/58092ecd9ae1 Use Verbose instead of Log Severity for QM_OR_ELSE_LOG_VERBOSE. r=dom-storage-reviewers,janv https://hg.mozilla.org/integration/autoland/rev/87c32bc1bde7 Preserve file content type when new name is unreadable or has no extension. r=dom-storage-reviewers,janv
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: