Closed Bug 925737 Opened 12 years ago Closed 12 years ago

Copy constructor on webidl unions

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: jib, Assigned: bzbarsky)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

See bug 916012, comment 4. Put a dictionary in a union with a boolean, or change a (boolean or object) to (boolean or MediaStreamConstraintsInternal) where the latter is a dictionary, and you get a result you can no longer copy in c++ (MOZ_DELETE is back).
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Whiteboard: [need review]
Note that (boolean or object) would still not be copy-constructible in this case.
Understood, I was confused when I wrote the description, mixing MediaStreamConstraints and MediaStreamConstraintsInternal. Only the latter needs to be copyable and it didn't use union yet.
Attachment #815983 - Flags: review?(peterv) → review+
Whiteboard: [need review]
Target Milestone: --- → mozilla28
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
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: