Closed Bug 618017 Opened 14 years ago Closed 13 years ago

Parsing XML can override the version

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: cdleary, Assigned: cdleary)

References

Details

(Keywords: regression, Whiteboard: fixed-in-tracemonkey)

Attachments

(2 files)

Attached file POC failure.
When an XML element or list root is encountered in the parser it sets JSOPTION_XML for the scope of that parse node to indicate that the scanner should scan |<!--| and |<![CDATA[| as tokens.

The parser currently sets JSOPTION_XML to indicate this, knowing that it'll get propagated to the version, and that the scanner will look at the version. Given that this is a scoped set/unset, we can just set a mode bit on the scanner and avoid the version override.
Confirmed that this is fixed by the patch queue in bug 595691, just gotta make a test case patch!
Depends on: 595691
Attached patch Mochitest.Splinter Review
Mochitest seems most appropriate given that we want to test exactly this browser-level behavior.
Comment on attachment 506324 [details] [diff] [review]
Mochitest.

Confirmed passing on my machine on top of the patch queue dependency.
Attachment #506324 - Flags: review?(mrbkap)
Attachment #506324 - Flags: review?(mrbkap) → review?(lw)
Attachment #506324 - Flags: review?(lw) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: