mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 550029. Don't try to run treeview script if the document global object has gone away. r=smaug
This commit is contained in:
parent
2cbbdbeb28
commit
60517b697a
@ -2813,7 +2813,9 @@ nsTreeBodyFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
nsresult rv = nsLeafBoxFrame::BuildDisplayList(aBuilder, aDirtyRect, aLists);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (!mView)
|
||||
// Bail out now if there's no view or we can't run script because the
|
||||
// document is a zombie
|
||||
if (!mView || !GetContent()->GetCurrentDoc()->GetScriptGlobalObject())
|
||||
return NS_OK;
|
||||
|
||||
return aLists.Content()->AppendNewToTop(new (aBuilder)
|
||||
|
Loading…
Reference in New Issue
Block a user