Closed Bug 1807198 Opened 2 years ago Closed 2 years ago

Extend preference to disable WritableFileStream in all contexts

Categories

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

defect

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox108 --- wontfix
firefox109 --- wontfix
firefox110 --- fixed

People

(Reporter: jari, Assigned: jari)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 obsolete file)

In the review of https://phabricator.services.mozilla.com/D162319 related to https://bugzilla.mozilla.org/show_bug.cgi?id=1802279 , a doubt was raised:

AFAIK, nobody uses it even on workers and since WritableFileStream isn't plugged into quota management and we want to enable OPFS by default on Nightly soon, I think it would be safer to just disable WritableFileStream in all contexts for now. We don't expect to last this for long time, probably only one release cycle.

Currently, if someone wants to use OPFS, they have to set the dom.fs.enabled pref anyway and if they want to experiment with WritableFileStream, they can set the additional pref. We would at least know that there are some users and we could warn them about possible problems.

We should also add a comment for the additional pref (dom.fs.writable_file_stream.enabled) that WritableFileStream implementation is only experimental, that is does synchronous IO and that it doesn't update quota information (which is not such big problem when the app starts always with a fresh profile).

This bug addresses the comment above.

Severity: -- → S4
Priority: -- → P3

Comment on attachment 9309663 [details]
Bug 1807198 - Extend preference to disable WritableFileStream in all contexts. r=#dom-storage

Revision D165447 was moved to bug 1802279. Setting attachment 9309663 [details] to obsolete.

Attachment #9309663 - Attachment is obsolete: true

Set release status flags based on info from the regressing bug 1798459

This bug has the keyword regression, so its type should be defect.

Type: task → defect
Flags: needinfo?(jjalkanen)

This is fixed by 1802279 : the static preferences flag dom.fs.writable_file_stream.enabled is true for all OPFS test contexts, otherwise false.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(jjalkanen)
Resolution: --- → FIXED

Yeah, https://phabricator.services.mozilla.com/D165447 should have been attached to this bug, but it's not a big deal. I'm updating the bug summary at least.

Summary: Enable FileSystemWritableFileStream with preference for testing → Extend preference to disable WritableFileStream in all contexts

The patch landed in nightly and beta is affected.
:jjalkanen, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox109 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(jjalkanen)
Flags: needinfo?(jjalkanen)
Target Milestone: --- → 110 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: