Re: [w3c/IndexedDB] Use StructuredClone() hook (#137)

> I assume the "user agent defined realm" situations are for when you're serializing to disk or similar?

Exactly. The model is:

If you're passing data to Indexed DB it does an immediate clone (which may have side effects, fail, throw, etc); the result may be used for various operations (e.g. extracting index keys) but that must be unobservable and side-effect free, and eventually a serialized form hits disk. So I lifted "user-agent defined Realm" from postMessage(), which seems to capture that well.

If you're retrieving data from Indexed DB, it's within the context of the request so the current Realm gets passed along as targetRealm.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/pull/137#issuecomment-273640391

Received on Wednesday, 18 January 2017 23:57:32 UTC