Closed Bug 754457 Opened 12 years ago Closed 12 years ago

Disallow ErrorResult copy constructor

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file)

I accidentally wrote a function that took an ErrorResult by value, not by reference.  This is busted, of course, because attempts to Throw() on the thing in the function won't be seen by the caller.

Patch coming up to disable the copy constructor for ErrorResult so this can't happen.
Whiteboard: [need review]
Attachment #623315 - Flags: review?(peterv) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/095eef67ec7b
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla15
Flags: in-testsuite- → in-testsuite?
https://hg.mozilla.org/mozilla-central/rev/095eef67ec7b
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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: