Closed Bug 85355 Opened 23 years ago Closed 23 years ago

XPCWrappedNative::ToString should sometimes yield '[object Foo]'

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.2

People

(Reporter: jband_mozilla, Assigned: dbradley)

Details

(Whiteboard: approved)

Attachments

(3 files)

I'm thinking that in the case where a wrappedNative object has a scriptable 
helper (and thus a custom JSClass name) we should name the default ToString 
function yield '[object Foo]' rather than '[xpconnect wrapped Foo]'. I imagine 
this might give us better backward compatibility for misc. DOM objects. If 
nothing else this might limit confusion.

This is easy to change and I think we should just do it before the next major 
release.
Status: NEW → ASSIGNED
Needs sr/r
Keywords: review
Third times a charm. Here's the "final" patch. It tests based on the scriptable 
info, not the class info.
sr=jst for the last patch.
r=beard
a=dbaron for trunk checkin (on behalf of drivers)
Keywords: review
Target Milestone: --- → mozilla0.9.2
Whiteboard: aproved
Whiteboard: aproved → approved
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Marking Verified - 
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: