Closed
Bug 327697
Opened 19 years ago
Closed 19 years ago
Make XPConnect refuse to wrap E4X (was: HTMLSelectElement.add hangs if second parameter is E4X)
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha1
People
(Reporter: jruderman, Assigned: mrbkap)
References
Details
(4 keywords, Whiteboard: [rft-dl])
Attachments
(3 files)
266 bytes,
text/html
|
Details | |
1.24 KB,
patch
|
brendan
:
review+
shaver
:
superreview+
dveditz
:
approval-branch-1.8.1+
dveditz
:
approval1.8.0.2+
|
Details | Diff | Splinter Review |
1.38 KB,
patch
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 1•19 years ago
|
||
Assignee | ||
Comment 2•19 years ago
|
||
E4X interacts badly with XPConnect and the way it does wrapping. In this case we're trying to walk up the parent chain of an E4X object, which (similarly to bug 326615) is causing us to think there's always a parent element. The best way to fix this for now is to make XPConnect simply refuse to wrap E4X objects.
OS: MacOS X → All
Priority: -- → P1
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.9alpha
Assignee | ||
Comment 3•19 years ago
|
||
We should be able to remove this hack when the DOM <-> E4X bindings are in place.
Assignee: general → mrbkap
Status: NEW → ASSIGNED
Attachment #212688 -
Flags: superreview?(shaver)
Attachment #212688 -
Flags: review?(brendan)
Comment 4•19 years ago
|
||
Comment on attachment 212688 [details] [diff] [review] Hack-fix Throw an exception, please! /be
Attachment #212688 -
Flags: review?(brendan) → review-
Comment 5•19 years ago
|
||
Comment on attachment 212688 [details] [diff] [review] Hack-fix Curse me for not reading the (missing) context! All's well, this method is supposed to return true or false and its caller is responsible for throwing in the latter case -- mrbkap kindly pointed that out in person. /be
Attachment #212688 -
Flags: review- → review+
Comment 6•19 years ago
|
||
And file a followup (depending on whatever bugs it depends on) to undo this?
Assignee | ||
Comment 7•19 years ago
|
||
I've added a reference to bug 270553 in the comment above the early return.
Comment 8•19 years ago
|
||
Comment on attachment 212688 [details] [diff] [review] Hack-fix sr=shaver
Attachment #212688 -
Flags: superreview?(shaver) → superreview+
Assignee | ||
Comment 9•19 years ago
|
||
Fix checked into trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 10•19 years ago
|
||
Verified fixed. The error message I now see looks reasonable: Error: [Exception... "Could not convert JavaScript argument arg 1 [nsIDOMHTMLSelectElement.add]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: https://bugzilla.mozilla.org/attachment.cgi?id=212294 :: init :: line 9" data: no]
Status: RESOLVED → VERIFIED
Reporter | ||
Updated•19 years ago
|
Summary: HTMLSelectElement.add hangs if second parameter is E4X → Make XPConnect refuse to wrap E4X (was: HTMLSelectElement.add hangs if second parameter is E4X)
Comment 11•19 years ago
|
||
Checking in regress-327697.js; /cvsroot/mozilla/js/tests/e4x/Regress/regress-327697.js,v <-- regress-327697.js initial revision: 1.1 done
Flags: testcase+
Comment 12•19 years ago
|
||
approving for 1.8.0 and 1.8 branches to fix hang after fix for bug 326615, a=dveditz
Flags: blocking1.8.1+
Flags: blocking1.8.0.2+
Updated•19 years ago
|
Attachment #212688 -
Flags: approval1.8.0.2+
Attachment #212688 -
Flags: approval-branch-1.8.1+
Assignee | ||
Comment 13•19 years ago
|
||
Updated•19 years ago
|
Whiteboard: [rft-dl]
Updated•19 years ago
|
Keywords: fixed1.8.1
Updated•19 years ago
|
Keywords: fixed1.8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•