mirror of
http://git.mos6581.com/ManchildProductions/Male-Poon.git
synced 2026-05-29 18:23:53 +00:00
Crash fix: hold a strong reference to |root| in nsHTMLDocument::SetBody.
This commit is contained in:
@@ -1113,7 +1113,7 @@ nsHTMLDocument::SetBody(nsIDOMHTMLElement* aBody)
|
|||||||
void
|
void
|
||||||
nsHTMLDocument::SetBody(nsGenericHTMLElement* newBody, ErrorResult& rv)
|
nsHTMLDocument::SetBody(nsGenericHTMLElement* newBody, ErrorResult& rv)
|
||||||
{
|
{
|
||||||
Element* root = GetRootElement();
|
nsCOMPtr<Element> root = GetRootElement();
|
||||||
|
|
||||||
// The body element must be either a body tag or a frameset tag. And we must
|
// The body element must be either a body tag or a frameset tag. And we must
|
||||||
// have a html root tag, otherwise GetBody will not return the newly set
|
// have a html root tag, otherwise GetBody will not return the newly set
|
||||||
|
|||||||
Reference in New Issue
Block a user