Open Bug 1346040 Opened 8 years ago Updated 2 years ago

StructuredCloneData lacks a move assignment operator

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: billm, Unassigned)

Details

This is kind of a confusing bug, but here's the gist of it: 1. The code in StructuredCloneData.h makes it look like there's a move assignment operator. However, you can't actually use it, because the default move assignment operator doesn't apply to this class. I think we should implement a move assignment operator ourselves that works. I don't see any reason why we couldn't. 2. The Copy method of StructuredCloneData should probably assert !mInitialized. Since it appends to things like PortIdentifiers(), it will add to the existing data rather than replacing it.
Priority: -- → P3
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.