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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: bkelly, Assigned: bkelly)
References
Details
Attachments
(1 file, 2 obsolete files)
6.63 KB,
patch
|
bkelly
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•9 years ago
|
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•9 years ago
|
||
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)
Updated•9 years ago
|
Attachment #8607139 -
Flags: review?(Jan.Varga) → review+
Comment 3•9 years ago
|
||
Backed out for B2G crashes. https://treeherder.mozilla.org/logviewer.html#?job_id=9968193&repo=mozilla-inbound
Assignee | ||
Comment 5•9 years ago
|
||
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
Assignee | ||
Comment 6•9 years ago
|
||
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 7•9 years ago
|
||
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
Assignee | ||
Comment 8•9 years ago
|
||
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.
Comment 10•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/eda5deaf71b9
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•