Closed Bug 1165395 Opened 9 years ago Closed 9 years ago

Cache API should test re-initializing QM after use

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

Attachments

(1 file, 2 obsolete files)

Recently I messed up the QuotaManager storage directories in the Cache code.  This only showed on the next time QM initialized.  We should have a test case to catch this kind of thing.

See bug 1164100 for the kind of fallout that can occur.

Ben indicates there's a QM.reset() function or something that can be called from a mochitest.
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
I ran this test against an old m-c prior to bug 1164100 landing.  It correctly fails when the morgue directory is created.

Note, I had to pipe QuotaManager.reset() through to SpecialPowers.
Attachment #8607139 - Flags: review?(Jan.Varga)
Attachment #8607139 - Flags: review?(Jan.Varga) → review+
Actually, I think this is problem from bug 1162365.  We just didn't catch it before without this test.  I think this interdiff should fix it.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=2735bba4ea77
Try shows that the b2g emulator no longer fails with the additional fix.  I'll land as soon as the trees re-open.
Attachment #8607139 - Attachment is obsolete: true
Attachment #8607600 - Attachment is obsolete: true
Attachment #8607710 - Flags: review+
Comment on attachment 8607710 [details] [diff] [review]
Test Cache API after QuotaManager reset. r=janv

Review of attachment 8607710 [details] [diff] [review]:
-----------------------------------------------------------------

r=me on the !aUsageInfo check
Thanks!  Sorry I didn't reflag.  I thought it was small enough and clearly correct I could just put it in with the previous patch.
https://hg.mozilla.org/mozilla-central/rev/eda5deaf71b9
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: