Add a bunch of crashtests

This commit is contained in:
Jesse Ruderman 2009-02-10 22:18:05 -08:00
parent c12ec02cab
commit 397e21afab
45 changed files with 741 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<html>
<head>
<script type="text/javascript">
document.createTreeWalker(null, NodeFilter.SHOW_ALL, null, false);
</script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,12 @@
<html><body>
<script type="text/javascript">
//function doBold(){
range = document.createRange();
newNode = document.createElement("b");
range.selectNodeContents(document);
range.surroundContents(newNode)
//}
</script>
text
</body></html>

View File

@ -1,6 +1,8 @@
load 43040-1.html
load 116848-1.html
load 149320-1.html
load 205225-1.html
load 231475-1.html
load 308120-1.xul
load 324871-1.html
load 325730-1.html

View File

@ -0,0 +1,27 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="foo">
<content><xul:box><xul:box><children/></xul:box></xul:box></content>
</binding>
<implementation>
<field name="box">document.getAnonymousNodes(this)[0]</field>
</implementation>
</bindings>
<html:style type="text/css">
<!-- CSS style rules for XBL bindings go here -->
<![CDATA[
foo {
-moz-binding: url("#foo");
}
]]>
</html:style>
<!-- XUL application goes here -->
<foo><description>World</description></foo>
</window>

View File

@ -1,4 +1,5 @@
load 205735-1.xhtml
load 223799-1.xul
load 226744-1.xhtml
load 342954-1.xhtml
load 342954-2.xhtml

View File

@ -0,0 +1,2 @@
<link xmlns="http://www.w3.org/1999/xhtml" href="some.css" rel="stylesheet" />
<x />

View File

@ -1,4 +1,5 @@
load 136896-1.xml
load 185285-1.xml
load 382636-1.xml
load 382636-2.svg
load 382636-3.xhtml

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<html><body>
<xsl:apply-templates select="document('dontmatter')"/>
</body></html>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="226425.xsl" ?>
<text></text>

View File

@ -1,3 +1,4 @@
load 91332.xml
load 111994.xml
load 226425.xsl
load 406106-1.html

View File

@ -0,0 +1,205 @@
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="charset=x-user-defined">
<TITLE>Testcase</TITLE>
</HEAD>
<BODY>
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
&ouml;
</BODY>
</HTML>

View File

@ -0,0 +1,11 @@
<html>
<head>
<title>foobidu</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
</head>
<body bgcolor="#C2C2C2" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
è° <!-- mozilla doesn't like that! //-->
°è <!-- but this works!!! //-->
</body>
</html>

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>bug 199379</title>
</head>
<body>
<form>
<input style="font-size:1000; width:32; height:34;" TYPE="SUBMIT" VALUE="link=basket&prod=96&tariff_id=999&desc=Fast Gate BASIC (ISDN 64K) &tariff=74,82&cp_id=5555&rating_tariff_id=0&parent_tariff_id=978&parent_product_id=&sItemDesc=Fast Gate BASIC (ISDN 64K) &package_id=0">
</form>
</body>
</html>

View File

@ -0,0 +1,8 @@
<html>
<head>
<title>bug 206561</title>
</head>
<body>
<div style="height: 100%; opacity: 0.8;"></div>
</body>
</html>

View File

@ -1,4 +1,8 @@
load 122875-1.html
load 156882-1.html
load 157320-1.html
load 199379-1.html
load 206561-1.html
load 345576-1.html
load 345629-1.html
load 369688-1.html

View File

@ -0,0 +1,11 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript">window.onerror=new Function("return True")</script>
<script type="text/javascript" src="inexistant.js"></script>
</head>
<body></body>
</html>

View File

@ -1,4 +1,5 @@
load 117307-1.html
load 193710.html
load 326615-1.html
load 328553-1.html
load 346258-1.html

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>bug 176915</title>
</head>
<body>
<div style='position:relative;display:inline'>
<object style='position:absolute;'></object>
</div>
</body>
</html>

View File

@ -0,0 +1,13 @@
<html>
<head>
<style>
p:first-letter {
position: fixed;
left: 100px;
top: 100px;
}
</style>
<body>
<p>Blah blah blah
</body>
</html>

View File

@ -0,0 +1,33 @@
<html>
<head><title>bug 22037</title>
<!-- got the testcase from /mozilla/layout/html/tests/block/bugs/ -->
</head>
<body>
<p><span><span><span>
before before before before before before before before
before before before before before before before before before before before
before before before before before before before before before before before
before before before before before before before before before before before before
<object src="foo">
left left left left left left left left left left left left left left
left left left left
<h2>
block block block block block block block block block block block block block
block block block block block block block
</h2>
right right right right right right right right right right right right right right right
right right right
</object>
after after after after after after after after after after after after after after after
after after after after after after after after after after after after after after after
after after after after after after after after after after after after after after after
after after after after after after after after after after after after after after after
</span></span></span></p>
</body>
</html>

View File

@ -0,0 +1,5 @@
<html>
<body>
<li>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<script language="JavaScript" type="text/javascript">
document.writeln("<A><DIV STYLE=\"position:absolute;\">" + "</DIV></A>");
</script>
</body>
</html>

View File

@ -23,6 +23,11 @@ load 147320-1.html
load 148245-1.html
load 149014-1.html
load 150431-1.html
load 176915-1.html
load 191272-1.html
load 199696-1.html
load 217903-1.html
load 223064-1.html
load 241300-1.html
load 243159-1.html
load 243159-2.xhtml

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en" lang="en">
<head><title>Killer</title></head>
<body>
<form style="overflow: auto;">
<select style="position: fixed;">
<option>First</option>
<option>Second</option>
<option>Third</option>
</select>
</form>
</body>
</html>

View File

@ -0,0 +1,8 @@
<html>
<body>
<fieldset style="width: 300px; position: fixed">
<legend>Crash test</legend>
<div style="float: right; background-color: orange; border: 1px solid black">Hello, my name is Inigo Montoya.</div> hello world content is the best content around, I love hello world content to death, especially when it wraps; that just gives me the chills. Anything less than hello world content is uncivilized.
</fieldset>
</body>
</html>

View File

@ -0,0 +1,24 @@
<html>
<head></head>
<body>
<form method="post" action="#" enctype="multipart/form-data" name="content">
<div id="sshot" style="position:absolute; left:0; top:70; width:600;
visibility:visible">
<input type="file" name="sshot-1" size="20">
</div>
<div id="comment" style="position:absolute; left:0; top:70; width:600;
visibility:hidden"></div>
<script language="JavaScript">
<!--
document.documentElement.offsetHeight;
document.getElementById('sshot').style.display = 'none';
document.getElementById('comment').style.display = 'none';
// -->
</script>
</form>
</body></html>

View File

@ -0,0 +1,23 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<BODY>
<EMBED>
<TABLE>
<TR>
<TD STYLE="FONT: 10px Arial;">
<A STYLE="FONT: 11px Arial;">1</A>
</TD>
</TR>
</TABLE>
<DIV STYLE="POSITION: absolute;">
<FORM>
<SELECT STYLE="FONT: 11px Arial;">
</FORM>
</DIV>
</BODY>
</HTML>

View File

@ -1,3 +1,7 @@
load 166750-1.html
load 200347-1.html
load 203041-1.html
load 213390-1.html
load 310426-1.xhtml
load 310520-1.xhtml
load 315752-1.xhtml

View File

@ -0,0 +1,15 @@
<html>
<head>
<title>bug 192408</title>
</head>
<body>
<span>
<embed src="foo.mid"></embed>
<script>
document;
</script>
<center></center>
<script src="bar.js"></script>
</span>
</body>
</html>

View File

@ -1,5 +1,6 @@
load 105619-1.html
load 187671-1.html
load 192408-1.html
load 286707-1.html
load 285727-1.html
load 330998-1.html

View File

@ -0,0 +1,13 @@
<html>
<head>
<title>Crash test</title>
</head>
<body>
<table style="position: fixed; top: 0px;"> <!-- Crashes Mozilla -->
<tr>
<form>
</form>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,19 @@
<html>
<head>
<title>bug</title>
</head>
<body>
<table>
<tr>
</tr>
<tr>
<form>
<input name="url" size="20" type="text">
</form>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,3 @@
<form method="post">
<table><tr><td><input type="browse"></td></tr></table>
</form>

View File

@ -0,0 +1,10 @@
<html>
<head><title>bug 197015</title></head>
<body>
<table>
<!-- The "htp" typo is an essential part of this testcase. -->
<link rel="stylesheet" type="text/css" href="htp://www.mozilla.org/foo.css">
foo
</table>
</body>
</html>

View File

@ -0,0 +1,93 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Essai</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" language="javascript">
function remove_col2() {
var colp = document.getElementById("colp");
var c4= document.getElementById("c4");
colp.colSpan=0;
colp.style.display="none";
c4.style.display="none";
}
function remove_col() {
var tr1 = document.getElementById("tr1");
var tr2 = document.getElementById("tr2");
var tr3 = document.getElementById("tr3");
var colp = document.getElementById("colp");
var c1 = document.getElementById("c1");
var c2 = document.getElementById("c2");
var c3 = document.getElementById("c3");
var c4= document.getElementById("c4");
c1.style.display="none";
colp.colSpan=1;
c3.style.display="none";
c2.style.display="none";
document.documentElement.offsetHeight;
remove_col2();
}
</script>
</head>
<body onload="remove_col()">
<table border="1" id="t_0">
<thead>
<tr id="tr1">
<th rowspan="2">aaaa</th>
<th rowspan="2">bbbb</th>
<th colspan="2" id ="colp">cccc</th>
<th rowspan="2">dddd</th>
</tr>
<tr id="tr2">
<th id="c1">eeee</th>
<th id="c2">ffff</th>
</tr>
</thead>
<tbody>
<tr id="tr3">
<td>1111</td>
<td>2222</td>
<td id="c3">3333</td>
<td id="c4">4444</td>
<td>5555</td>
</tr>
</tbody>
</table>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!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" lang="en" xml:lang="en">
<head>
<title>bug 223458</title>
<body>
<table style="margin-bottom: 1em; border: 1px solid red; border-collapse:collapse;">
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
<tr><td>mod_ssl</td></tr>
</table>
</body>
</html>

View File

@ -5,6 +5,12 @@ load 55789-1.html
load 78623-1.html
load 110523-1.html
load 138725-1.html
load 159359-1.html
load 187779-1.html
load 189751-1.html
load 197015-1.html
load 220536-1.html
load 223458-1.html
load 284844-1.html
load 284852.html
load 300912.html

View File

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css" ?>
<window
id="nodeCreator" title="Node Creator"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<description context="context">Right-click here, and expect a crash.</description>
<popupset id="context-set">
<popup id="context">
<deck selectedItem="0">
<menuitem label="You should never see this" />
</deck>
</popup>
</popupset>
</window>

View File

@ -2,6 +2,7 @@ load 131008-1.xul
load 137216-1.xul
load 140218-1.xml
load 151826-1.xul
load 168724-1.xul
load 311457-1.html
load 322786-1.xul
load 326879-1.xul

View File

@ -0,0 +1,15 @@
<html>
<head>
<title>Untitled</title>
</head>
<body>
<table>
<tbody>
<form>
<tr><td colspan=2></td></tr>
<tr><td></td><td></td></tr>
</form>
</tbody>
</table>
</body>
</html>

View File

@ -0,0 +1,15 @@
<html>
<head>
<title>bug 185073</title>
</head>
<body>
<font>
<div id="updateText">
<script language=javascript type=text/javascript>
document.write('</div>');
document.getElementById("updateText").innerHTML = "foo";
</script>
</div>
</font>
</body>
</html>

View File

@ -0,0 +1,13 @@
<HTML><HEAD>
<SCRIPT language="javascript" type="text/javascript">
var header ="<body><div id=\"foo\"></div><div id=\"foo2\"><!-- comment -->";
var footer = "</div><!-- comment -->";
</SCRIPT>
<SCRIPT language="javascript" type="text/javascript">document.write(header);</SCRIPT>
</HEAD>
<BODY>
<SCRIPT language="javascript" type="text/javascript">document.write(footer);</SCRIPT>
</BODY></HTML>

View File

@ -0,0 +1,15 @@
<html>
<head>
<title>bug 188474</title>
</head>
<body>
<head>
<div>
<script>
document.write("<\/div>");
</script>
<noscript>
</div>
</noscript><!-- End PayPal Logo -->
</body>
</html>

View File

@ -0,0 +1 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <title>testcase - crasher</title> </head> <body> <div id="uniqid"> <script language="JavaScript" type="text/JavaScript"> document.write("&gt;"+document.getElementById('uniqid').innerHTML+"&lt;"); </script> </div> </body> </html>

View File

@ -19,6 +19,11 @@ load 92788-1.html
load 121591-1.html
load 147179-1.html
load 151956-1.html
load 152444-1.html
load 185073-1.html
load 188474-1.html
load 194329-1.html
load 197052-1.html
load 423373-1.html
# load 460706-1.xhtml
load 468538-1.xhtml