Closed
Bug 358965
Opened 18 years ago
Closed 18 years ago
XMLList.prototype.contains() no longer work
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
People
(Reporter: igor, Assigned: igor)
References
Details
(Keywords: regression, verified1.8.0.9, verified1.8.1.1, Whiteboard: [sg:nse])
Attachments
(1 file)
787 bytes,
patch
|
brendan
:
review+
dveditz
:
approval1.8.0.9+
dveditz
:
approval1.8.1.1+
|
Details | Diff | Splinter Review |
The fix for bug 354145 introduced a regression in XMLList.prototype.contains implementation in xml_contains() from jsxml.c. The C code always returns false for false results which silently breaks script execution.
For example, after
<><a/><b/></>.contains(<c/>);
the rest of the code is not executed.
I mark the bug as restricted as 354145 is.
Assignee | ||
Updated•18 years ago
|
Assignee | ||
Comment 1•18 years ago
|
||
Attachment #244260 -
Flags: review?(brendan)
Comment 2•18 years ago
|
||
Comment on attachment 244260 [details] [diff] [review]
Fix v1
I have to do a better job reviewing... air travel has taken its toll....
Please hook this up to go into js1.7src and 1.8.1.1 if it's a followup to a fix slated for those targets.
/be
Attachment #244260 -
Flags: review?(brendan) → review+
Assignee | ||
Comment 3•18 years ago
|
||
I committed the patch from comment 1 to the trunk:
Checking in jsxml.c;
/cvsroot/mozilla/js/src/jsxml.c,v <-- jsxml.c
new revision: 3.136; previous revision: 3.135
done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•18 years ago
|
||
Comment on attachment 244260 [details] [diff] [review]
Fix v1
This is a regression fix for the security fix.
Attachment #244260 -
Flags: approval1.8.1.1?
Attachment #244260 -
Flags: approval1.8.0.9?
Updated•18 years ago
|
Flags: in-testsuite+
Updated•18 years ago
|
Flags: blocking1.8.1.1?
Flags: blocking1.8.1.1+
Flags: blocking1.8.0.9?
Flags: blocking1.8.0.9+
Keywords: regression
Whiteboard: [sg:nse]
Comment 6•18 years ago
|
||
Comment on attachment 244260 [details] [diff] [review]
Fix v1
Approved for 1.8.0/1.8 branches, a=dveditz for drivers
Attachment #244260 -
Flags: approval1.8.1.1?
Attachment #244260 -
Flags: approval1.8.1.1+
Attachment #244260 -
Flags: approval1.8.0.9?
Attachment #244260 -
Flags: approval1.8.0.9+
Updated•18 years ago
|
Group: security
Assignee | ||
Comment 7•18 years ago
|
||
I committed the patch from comment 1 to MOZILLA_1_8_BRANCH:
Checking in jsxml.c;
/cvsroot/mozilla/js/src/jsxml.c,v <-- jsxml.c
new revision: 3.50.2.55; previous revision: 3.50.2.54
done
Keywords: fixed1.8.1.1
Assignee | ||
Comment 8•18 years ago
|
||
I committed the patch from comment 1 to MOZILLA_1_8_0_BRANCH:
Checking in jsxml.c;
/cvsroot/mozilla/js/src/jsxml.c,v <-- jsxml.c
new revision: 3.50.2.15.2.26; previous revision: 3.50.2.15.2.25
done
Keywords: fixed1.8.0.9
You need to log in
before you can comment on or make changes to this bug.
Description
•