Bug 492286 - Null check in nsHTMLSourceElement::BindToTree(). r=roc

This commit is contained in:
Chris Pearce 2009-09-23 13:58:00 +12:00
Родитель 2cd6055329
Коммит bc4d80925c
3 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -145,7 +145,7 @@ nsHTMLSourceElement::BindToTree(nsIDocument *aDocument,
aCompileEventHandlers); aCompileEventHandlers);
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
if (!aParent->IsNodeOfType(nsINode::eMEDIA)) if (!aParent || !aParent->IsNodeOfType(nsINode::eMEDIA))
return NS_OK; return NS_OK;
nsHTMLMediaElement* media = static_cast<nsHTMLMediaElement*>(aParent); nsHTMLMediaElement* media = static_cast<nsHTMLMediaElement*>(aParent);

Просмотреть файл

@ -0,0 +1 @@
<source xmlns="http://www.w3.org/1999/xhtml"/>

Просмотреть файл

@ -4,3 +4,5 @@ load 468763-1.html
load 474744-1.html load 474744-1.html
load 493915-1.html load 493915-1.html
load 495794-1.html load 495794-1.html
load 492286-1.xhtml