Closed Bug 363976 Opened 18 years ago Closed 16 years ago

Malformed xform crashes Firefox

Categories

(Core Graveyard :: XForms, defect)

1.8 Branch
PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: elharo, Unassigned)

Details

(Keywords: crash)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8

The attached file crashes Firefox reliably with the MNozilla XForms plugin 0.7 installed. 

Reproducible: Always

Steps to Reproduce:
Open attached file.
Bugzilla is acting up and won't let me attach the file. Here's the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xforms="http://www.w3.org/2002/xforms">
<head>
	<title>Hello XForms</title>

<xforms:model 
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    schema="cc.xsd">
  <xforms:instance>
    <CreditCardInfo xmlns="">
      <Name />
      <Number />
      <CVV2 />
      <Expiration xsi:type="xs:date"/>
      <Address1 />
      <Address2 />
      <City />
      <State />
      <Zip />
    </CreditCardInfo>
  </xforms:instance>
  <xforms:submission action="http://example.com/submit" method="post" id="submit" includenamespaceprefixes=""/>
</xforms:model>


</head>
<body>

<p>To order your collector's item Reebo and Zooti dolls simply fill in your credit card information:</p>

<xforms:input ref="Name">
  <xforms:label>Name as it appears on the credit card:</xforms:label>
</xforms:input>

<xforms:range ref="Name">
  <xforms:label>Range

<xforms:input ref="Number" id="ccnumber">
  <xforms:label>Credit Card Number:</xforms:label>
</xforms:input>

<xforms:input ref="CVV2">
  <xforms:label>CVV2:</xforms:label>
</xforms:input>

<xforms:input ref="Expiration" xsi:type="xs:date"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
>
  <xforms:label>Expiration date:</xforms:label>
</xforms:input>

<xforms:input ref="City">
  <xforms:label>City:</xforms:label>
</xforms:input>

<xforms:input ref="Address1">
  <xforms:label>Address Line 1:</xforms:label>
</xforms:input>

<xforms:input ref="Address2">
  <xforms:label>Address Line 2:</xforms:label>
</xforms:input>

<xforms:select1 ref="State">
  <xforms:label>State:</xforms:label>
    <xforms:item>
      <xforms:label>AA</xforms:label>
      <xforms:value>AA</xforms:value> 
    </xforms:item>
    <xforms:item>
      <xforms:label>AK</xforms:label>
      <xforms:value>AK</xforms:value> 
    </xforms:item>
    <xforms:item>
      <xforms:label>CA</xforms:label>
      <xforms:value>CA</xforms:value> 
    </xforms:item>
    <xforms:item>
      <xforms:label>NY</xforms:label>
      <xforms:value>NY</xforms:value> 
    </xforms:item>
    <!-- more states follow -->
</xforms:select1>

<xforms:input ref="Zip" id="zip">
  <xforms:label>Zip code:</xforms:label>
</xforms:input>

<xforms:submit submission="submit">
  <xforms:label>Buy Now!</xforms:label>
</xforms:submit>

</body>
</html>
Assignee: general → nobody
Product: Mozilla Application Suite → Firefox
QA Contact: general → general
Version: unspecified → 1.5.0.x Branch
Firefox v1.5.x is not supported anymore.

R.Invalid.

Reopen if you can reproduce with Firefox v2.0.0.14 and Mozilla XForms extension v0.8.4.
Component: General → XForms
Product: Firefox → Core
QA Contact: general → xforms
Version: 1.5.0.x Branch → 1.8 Branch
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Keywords: crash
Resolution: --- → INVALID
Attachment #248757 - Attachment mime type: text/html → application/xhtml+xml
attached testcase doesn't crash in FF 2.0.0.14 with Mozilla XForms 0.8.5 so leaving the testcase closed.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: