Closed Bug 1855940 Opened 2 years ago Closed 2 years ago

Don't call nsIQuotaManagerService::Reset in mochitests

Categories

(Core :: Storage: Cache API, defect, P2)

defect

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(1 file)

nsIQuotaManagerService::Reset can only be used in isolated environments when other things (especially stuff for other origins) can't run in parallel. So only xpcshell tests and gtests can use it (mochitests and web platform tests shouldn't use it).

There are some mochitests for Cache API which use the method, they should be fixed by calling nsIQuotaManagerService::ResetStoragesForPrincipal instead.

Blocks: 1714354
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/670023e8a9bb Don't call nsIQuotaManagerService::Reset in mochitests; r=hsingh
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: