Open Bug 1519859 Opened 6 years ago Updated 2 years ago

Cannot get FileInfo while doing structured clone

Categories

(Core :: Storage: IndexedDB, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: tt, Unassigned)

References

(Depends on 1 open bug)

Details

This is the follow-up bug for bug 1432133. Note that the patch there won't actually fix the problem, but just avoiding from crashing. We should somehow find the real issue inside.

We could keep understanding how many users dropping into this by the telemetry.

Depends on: 1504535, 1512750
Depends on: 1521541
Depends on: 1557289

I had a xpcshell test using a corrupted database to reproduce hitting this issue. The next step is that using manual created test to reproduce this. I guess we only need to put different file ids into table object_data and table file for creating the corrupted database.

My plan for this is to remove the idb folder as our first step.
I might need to call:

  • QuotaClient::AbortOperations(aOrigin)
  • Clear the idb folder
  • QuotaClient::OnOriginClearCompleted(aOrigin)

Now, the first entry point where we found the issue is at:
https://searchfox.org/mozilla-central/rev/f372470e10c8cb0691681603a1d6324dee5b3b8a/dom/indexedDB/ActorsParent.cpp#8435

If it eventually goes to content process (DeserializeStructuredCloneFile), then we probably wants to call ClearOrigin or something like that on QMS.

I'm not actively working on this so drop the assignee.

Assignee: ttung → nobody
Blocks: 1541370
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.