Closed
Bug 1159545
Opened 9 years ago
Closed 8 years ago
Storage Inspector IndexedDB actor value inspector is lossy due to apparent JSON.stringify serialization, Maps and Sets become empty Objects, should probably use nsIStructuredCloneContainer for serialization
Categories
(DevTools :: Storage Inspector, defect)
DevTools
Storage Inspector
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: asuth, Assigned: miker)
References
Details
I am using the very cool Storage Inspector to check out my IndexedDB data and noticed that my Sets and Maps are turning into empty objects. (IndexedDB values are serialized using structured clone.) I don't see getObjectStoreData in the indexedDB actor doing anything special, so I suspect this is an issue of the actor infrastructure using JSON to serialize, and in this case either it or the indexedDB actor needs to specifically be using nsIStructuredCloneContainer (https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIStructuredCloneContainer) or similar magic. If this should be addressed at the actor infrastructure level, I'm not immediately finding a bug to make this depend on that one, but one may exist (or maybe one should be filed?)
Assignee | ||
Comment 1•8 years ago
|
||
We can't because this would break compatibility with other tools e.g. Chrome dev tools so we need to stick to JSON for the moment. There are other ideas in the works in order to accomplish getting the same object as has been passed though.
Assignee: nobody → mratcliffe
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•