Closed Bug 1159545 Opened 8 years ago Closed 6 years ago
Storage Inspector Indexed
DB actor value inspector is lossy due to apparent JSON .stringify serialization, Maps and Sets become empty Objects, should probably use ns IStructured Clone Container for serialization
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?)
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: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.