Closed
Bug 448587
Opened 17 years ago
Closed 17 years ago
SJOWs around functions don't resolve the 'prototype' property
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.1a2
People
(Reporter: mrbkap, Assigned: mrbkap)
References
()
Details
(Whiteboard: [firebug-p2])
Attachments
(1 file)
2.28 KB,
patch
|
jst
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
From XPC_SJOW_GetOrSetProperty:
// We don't deal with the following properties here.
if (id == GetRTStringByIndex(cx, XPCJSRuntime::IDX_PROTOTYPE) ||
id == GetRTStringByIndex(cx, XPCJSRuntime::IDX_TO_STRING)) {
return JS_TRUE;
}
jst, do you remember why we do this? This would affect any random 'prototype' property on a wrapped object and it bites us especially when the wrapped function is
Assignee | ||
Comment 1•17 years ago
|
||
This would be the obvious fix + a mochitest.
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #331786 -
Flags: superreview?(bzbarsky)
Attachment #331786 -
Flags: review?(jst)
![]() |
||
Updated•17 years ago
|
Attachment #331786 -
Flags: superreview?(bzbarsky) → superreview+
Comment 2•17 years ago
|
||
Comment on attachment 331786 [details] [diff] [review]
Fix
I really don't remember exactly why that code is there, but I can't really imagine what it'd be needed for here as long as the property does get wrapped etc.
Attachment #331786 -
Flags: review?(jst) → review+
Comment 3•17 years ago
|
||
This would be nice for Firebug...
Flags: wanted1.9.0.x?
Whiteboard: [firebug-p2]
Comment 4•17 years ago
|
||
Pushed to mozilla-central: http://hg.mozilla.org/mozilla-central/index.cgi/rev/3c09b73c94ed
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1a2
Comment 5•17 years ago
|
||
Any news on which version of Firefox will have this fix?
![]() |
||
Comment 6•17 years ago
|
||
See the "target milestone" field?
Updated•17 years ago
|
Flags: wanted1.9.0.x? → wanted1.9.0.x+
You need to log in
before you can comment on or make changes to this bug.
Description
•