mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix for bug 828180 (crash in nsIContent::IsHTML). r=bz.
--HG-- extra : rebase_source : 677b29a45cb1d19b8e793b4dc4e4bb9f7006fafa
This commit is contained in:
parent
16b3473563
commit
96040234fe
5
content/html/content/crashtests/828180.html
Normal file
5
content/html/content/crashtests/828180.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
var table = document.createElement("table");
|
||||||
|
table.tHead = null;
|
||||||
|
table.tFoot = null;
|
||||||
|
</script>
|
@ -44,3 +44,4 @@ load 795221-5.xml
|
|||||||
load 798802-1.html
|
load 798802-1.html
|
||||||
load 811226.html
|
load 811226.html
|
||||||
load 819745.html
|
load 819745.html
|
||||||
|
load 828180.html
|
||||||
|
@ -62,7 +62,7 @@ public:
|
|||||||
}
|
}
|
||||||
void SetTHead(HTMLTableSectionElement* aTHead, ErrorResult& aError)
|
void SetTHead(HTMLTableSectionElement* aTHead, ErrorResult& aError)
|
||||||
{
|
{
|
||||||
if (!aTHead->IsHTML(nsGkAtoms::thead)) {
|
if (aTHead && !aTHead->IsHTML(nsGkAtoms::thead)) {
|
||||||
aError.Throw(NS_ERROR_DOM_HIERARCHY_REQUEST_ERR);
|
aError.Throw(NS_ERROR_DOM_HIERARCHY_REQUEST_ERR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -80,7 +80,7 @@ public:
|
|||||||
}
|
}
|
||||||
void SetTFoot(HTMLTableSectionElement* aTFoot, ErrorResult& aError)
|
void SetTFoot(HTMLTableSectionElement* aTFoot, ErrorResult& aError)
|
||||||
{
|
{
|
||||||
if (!aTFoot->IsHTML(nsGkAtoms::tfoot)) {
|
if (aTFoot && !aTFoot->IsHTML(nsGkAtoms::tfoot)) {
|
||||||
aError.Throw(NS_ERROR_DOM_HIERARCHY_REQUEST_ERR);
|
aError.Throw(NS_ERROR_DOM_HIERARCHY_REQUEST_ERR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user