Closed Bug 1806362 Opened 1 year ago Closed 1 year ago

FS: Add infrastructure for verifying SyncAccessHandle quota management

Categories

(Core :: DOM: File, task, P2)

task

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(3 files, 2 obsolete files)

An xpcshell test for verifying SyncAccessHandle quota management revealed some small bugs which need to be addressed.

The actor is destroyed during origin clearing or resetting.

Depends on D159880

This bug causes NS_AsyncCopy to call the progress callback with random values
when there's an error during writing.

Depends on D165069

Some tests will need to use nsIQuotaManagerService::Reset.

Depends on D165070

The new method is needed for testing quota management and it works in xpcshell
tests including workers in xpcshell tests.

Depends on D165071

Blocks: 1761098
No longer blocks: 1789590
Keywords: leave-open
Pushed by jjalkanen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9ad750172e57
Recreate FileSystemManagerChild after it was destroyed; r=dom-storage-reviewers,jari
https://hg.mozilla.org/integration/autoland/rev/0bdd4eb728e3
FileQuotaStreamWithWrite::Write should return zero written bytes in the failure case; r=dom-storage-reviewers,jari
https://hg.mozilla.org/integration/autoland/rev/b21e0aaab0db
Enable nsIQuotaManagerService methods for testing; r=dom-storage-reviewers,jari
Flags: needinfo?(jvarga)
Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/180a8d7b3429
Recreate FileSystemManagerChild after it was destroyed; r=dom-storage-reviewers,jari
https://hg.mozilla.org/integration/autoland/rev/31627dd1ef99
FileQuotaStreamWithWrite::Write should return zero written bytes in the failure case; r=dom-storage-reviewers,jari
https://hg.mozilla.org/integration/autoland/rev/fbc422a876ba
Enable nsIQuotaManagerService methods for testing; r=dom-storage-reviewers,jari
Blocks: 1806363
Summary: FS: Verify SyncAccessHandle quota management → FS: Add infrastructure for verifying SyncAccessHandle quota management
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Blocks: 1815696

Comment on attachment 9309024 [details]
Bug 1806362 - Introduce Utils in tests with a method for shrinking storage size; r=#dom-storage

Revision D165072 was moved to bug 1815696. Setting attachment 9309024 [details] to obsolete.

Attachment #9309024 - Attachment is obsolete: true

Comment on attachment 9309025 [details]
Bug 1806362 - Add a test to verify SyncAccessHandle quota management; r=#dom-storage

Revision D165073 was moved to bug 1815696. Setting attachment 9309025 [details] to obsolete.

Attachment #9309025 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: