Closed Bug 662930 Opened 14 years ago Closed 14 years ago

Consolidate IDB structured clone [de]serialization

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla7

People

(Reporter: khuey, Assigned: khuey)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch (obsolete) — Splinter Review
This will make it easier to add custom serialization/deserialization hooks for fun types. I removed AsyncConnectionHelper::ConvertCloneBufferToJSVal because 1) the safe if buffer.data() is null behavior seems like something everything should get 2) all of its callers clear the buffer manually after the call anyways. This passes all IDB tests locally
Attachment #538117 - Flags: review?(bent.mozilla)
Attached patch PatchSplinter Review
bent points out that assuming a context could be dangerous. This diff requires a context to be passed in explicitly.
Attachment #538117 - Attachment is obsolete: true
Attachment #538117 - Flags: review?(bent.mozilla)
Attachment #538121 - Flags: review?(bent.mozilla)
Comment on attachment 538121 [details] [diff] [review] Patch Review of attachment 538121 [details] [diff] [review]: ----------------------------------------------------------------- r=me if you move the JSContext* arg to be first, and we use NS_ASSERTION in idb code.
Attachment #538121 - Flags: review?(bent.mozilla) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: