Closed Bug 865222 Opened 11 years ago Closed 9 years ago

JSAutoCompartment should use MOZ_GUARD_OBJECT_NOTIFIER_PARAM

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: bzbarsky, Assigned: qdot)

Details

Attachments

(1 file)

I was looking at some code this morning that did:

    JSAutoCompartment(aCx, valueObj);

and then of course unpleasant things happened somewhere down the line...
Assignee: general → nobody
Assignee: nobody → kyle
Attachment #8597549 - Flags: review?(efaustbmo)
Comment on attachment 8597549 [details] [diff] [review]
Patch 1 (v1) - Add MOZ_GUARD_OBJECT_NOTIFIER_PARAM to JSAutoCompartment and JSAutoNullableCompartment

My God. I've personally done this in patches. Thanks so much for fixing this footgun.
Attachment #8597549 - Flags: review?(efaustbmo) → review+
https://hg.mozilla.org/mozilla-central/rev/0dd11177cdc4
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: