mirror of
http://git.mos6581.com/ManchildProductions/Male-Poon.git
synced 2026-05-26 18:40:27 +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
|
||||
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
|
||||
// have a html root tag, otherwise GetBody will not return the newly set
|
||||
|
||||
Reference in New Issue
Block a user