Closed Bug 812669 Opened 12 years ago Closed 12 years ago

Remove XPConnect equality hooks

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: bholley, Assigned: bholley)

References

Details

Attachments

(1 file, 1 obsolete file)

XPConnect currently has some hooks for comparing objects by comparing the underlying identity object. But since compartment-per-global, we can only ever have at most one XPCWN for a given identity object in a given compartment, so there's no way this hook would ever do anything. Let's kill it.

Jorendorff/Luke, is this something we're interested in removing on the JSAPI side as well? Or is it used by embedders?
I seem to recall it was only added for the Mozilla embedding, so I'd be pro-removing it.  I think this would introduce some nice engine simplifications as well.
(In reply to Luke Wagner [:luke] from comment #1)
> I seem to recall it was only added for the Mozilla embedding, so I'd be
> pro-removing it.  I think this would introduce some nice engine
> simplifications as well.

Ok, file a followup bug dependent on this one? I'm probably not the right person to maximally reap the simplifications here.
Blocks: 658909
Blocks: 838558
Attached patch Remove XPConnect equality hooks. v3 (obsolete) (deleted) — Splinter Review
Attachment #710643 - Flags: review?(mrbkap)
Attachment #710644 - Flags: review?(mrbkap)
Attachment #710643 - Attachment is obsolete: true
Attachment #710643 - Flags: review?(mrbkap)
Comment on attachment 710644 [details] [diff] [review]
Remove XPConnect equality hooks. v3

I guess we should thank gal for holding the line here on proxies and forcing us to ween XPConnect off of this hook.
Attachment #710644 - Flags: review?(mrbkap) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/88543d623c3f
https://hg.mozilla.org/mozilla-central/rev/88543d623c3f
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: