Skip to content
Snippets Groups Projects
Commit bc4d8092 authored by Chris Pearce's avatar Chris Pearce
Browse files

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

parent 2cd60553
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ nsHTMLSourceElement::BindToTree(nsIDocument *aDocument,
aCompileEventHandlers);
NS_ENSURE_SUCCESS(rv, rv);
if (!aParent->IsNodeOfType(nsINode::eMEDIA))
if (!aParent || !aParent->IsNodeOfType(nsINode::eMEDIA))
return NS_OK;
nsHTMLMediaElement* media = static_cast<nsHTMLMediaElement*>(aParent);
......
<source xmlns="http://www.w3.org/1999/xhtml"/>
\ No newline at end of file
......@@ -4,3 +4,5 @@ load 468763-1.html
load 474744-1.html
load 493915-1.html
load 495794-1.html
load 492286-1.xhtml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment