Closed Bug 281683 Opened 20 years ago Closed 20 years ago

Crash when loading XML doc with XSL ref and javascript in resulting page.

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 202765

People

(Reporter: russellneufeld, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Here are the two files needed to reproduce the problem:

dir.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="dir.xsl"?>
<directory time="1107961941"/>

dir.xsl:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
  <body>
     Date = <script type="text/javascript">document.write(new Date(1000 *
<xsl:value-of select="/directory/@time"/>))</script>
  </body>
</html>
</xsl:template>
</xsl:stylesheet>

Put the files in the same directory.  Then open dir.xml in mozilla/firefox. 
Browser will crash within a second or two.

Reproducible: Always

Steps to Reproduce:
1.See details section files and steps.

Actual Results:  
All browser windows which were open crash.

Expected Results:  
Not crash.  :)  Should have rendered a page which looked like
Date = Wed Feb 09 10:50:00 EST 2005

*** This bug has been marked as a duplicate of 202765 ***
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.