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)

defect

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
Blocks: 1513881
Priority: -- → P3
Blocks: 1540402
Priority: P3 → P2

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)

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)

(In reply to Tom Tung [:tt, :ttung] from comment #2)

  • Clear gUsages when temporary storage initialization fails

This should be enough.

Depends on D27502

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;
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;
Type: enhancement → defect
No longer blocks: 1513881
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
Status: NEW → RESOLVED
Closed: 5 years ago
Keywords: leave-open
Resolution: --- → FIXED
Attachment #9058250 - 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: