Closed
Bug 1514600
Opened 5 years ago
Closed 5 years ago
LSNG: Clear gUsages when temporary storage initialization fails
Categories
(Core :: Storage: localStorage & sessionStorage, defect, P2)
Core
Storage: localStorage & sessionStorage
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox66 | --- | affected |
People
(Reporter: janv, Assigned: tt)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
It can happen that temporary storage initialization fails for some reason. However, it can happen that the initialization is triggered again, but we already created gUsages for some origins, se we can end up with this assertion: https://searchfox.org/mozilla-central/rev/1a4a7745fd4a14402a0de0e9abc040724d4fcf8f/dom/localstorage/ActorsParent.cpp#2589
Updated•5 years ago
|
Priority: -- → P3
Reporter | ||
Updated•5 years ago
|
Priority: P3 → P2
Reporter | ||
Comment 1•5 years ago
|
||
Tom, you can take this, but note that it's not the same issue as in bug 1541771.
I'd like to review the patch once it's available.
Flags: needinfo?(shes050117)
Assignee | ||
Comment 2•5 years ago
|
||
Sure, I will do this as soon as possible.
My impression for this is that either:
- Clear
gUsages
when temporary storage initialization fails - Overwrite the correct usage for the second time, avoid misuse for the
gUsages
consumers by checking whether the storage is initialized yet
Assignee: nobody → shes050117
Flags: needinfo?(shes050117)
Reporter | ||
Comment 3•5 years ago
|
||
(In reply to Tom Tung [:tt, :ttung] from comment #2)
- Clear
gUsages
when temporary storage initialization fails
This should be enough.
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D27502
Updated•5 years ago
|
Attachment #9058250 -
Attachment description: Bug 1514600 - P2 - Add a unit test to verify the fix in P1; → Bug 1514600 - P2 - Add an unit test to verify the fix in P1;
Updated•5 years ago
|
Attachment #9058249 -
Attachment description: Bug 1514600 - P1 - Cleanup the gUsages while failing to initialize the storage; → Bug 1514600 - P1 - Notify LS to cleanup the gUsages while storage initialization fails;
Reporter | ||
Updated•5 years ago
|
Type: enhancement → defect
Reporter | ||
Updated•5 years ago
|
Keywords: leave-open
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/695621ee868d P1 - Notify LS to cleanup the gUsages while storage initialization fails; r=janv
Comment 7•5 years ago
|
||
bugherder |
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Attachment #9058250 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•