Closed Bug 941767 Opened 11 years ago Closed 11 years ago

Fix rooting hazard in GetNativeForGlobal()

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: jonco, Assigned: jonco)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Attached patch fix-GetNativeForGlobal-hazard (deleted) — Splinter Review
GetNativeForGlobal() calls EnsureCompartmentPrivate() just to check if the compartment private has a scope. This can GC if it needs to create the compartment private. Instead, we can just call MaybeGetObjectScope() which won't attempt to create the compartment private if it's not already present.
Attachment #8336216 - Flags: review?(bobbyholley+bmo)
Attachment #8336216 - Flags: review?(bobbyholley+bmo) → review+
Component: JavaScript Engine → XPConnect
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: