Stop parenting Xray expando objects to a non-global

RESOLVED FIXED in Firefox 39

Status

()

Core
XPConnect
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: bz, Assigned: bz)

Tracking

Trunk
mozilla39
x86
Mac OS X
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox39 fixed)

Details

Attachments

(1 attachment)

I don't see an obvious reason for this to be happening; we never seem to get the expando object's parent.
Created attachment 8568932 [details] [diff] [review]
Stop parenting Xray expando objects to a non-global
Attachment #8568932 - Flags: review?(bobbyholley)
Comment on attachment 8568932 [details] [diff] [review]
Stop parenting Xray expando objects to a non-global

Review of attachment 8568932 [details] [diff] [review]:
-----------------------------------------------------------------

I think this may have been used before we switched xray expandos to a C++ WeakMap, but now it does indeed appear unused. Huzzah!

::: js/xpconnect/wrappers/XrayWrapper.cpp
@@ +941,5 @@
>              JS_ClearPendingException(cx);
>      }
>  #endif
>  
>      // Create the expando object. We parent it directly to the target object.

Comment needs updating.
Attachment #8568932 - Flags: review?(bobbyholley) → review+
Comment updated, good catch.
https://hg.mozilla.org/mozilla-central/rev/0c29786741a7
Status: NEW → RESOLVED
Last Resolved: 3 years ago
status-firefox39: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.