Closed Bug 275379 Opened 20 years ago Closed 20 years ago

Faulty XSLT cause Firefox to crash

Categories

(Core :: XSLT, defect)

1.0 Branch
x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 226425

People

(Reporter: nomak.jf, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20041219 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20041219 Firefox/1.0+

Bad XSLT crashes Firefox immediately. Bad code:
<xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
    <xsl:template match="/">
	<html>
	    <body>
		<xsl:apply-templates/>
	    </body>
	</html>
    </xsl:template>
    <xsl:template match="order">
	<html>
	     <xsl:apply-templates select="."/>
	</html>
    </xsl:template>
</xsl:stylesheet>

Reproducible: Always

Steps to Reproduce:
1.Save above code into xslt file
2.create xml file connected with saved xslt file in which order is root element
3.load xml file
4. Firefox crashes

Actual Results:  
Crash

Expected Results:  
display information about bad xslt
Duplicate of bug 226425?
Component: General → XSLT
Product: Firefox → Core
Version: unspecified → Trunk
Assignee: firefox → nobody
Component: XSLT → Cmd-line Features
QA Contact: firefox.general → bugzilla
Version: Trunk → 1.0 Branch
Component: Cmd-line Features → XSLT

*** This bug has been marked as a duplicate of 226425 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.