Bug 683059 - Fix for Crash [@ nsObjectFrame::IsOpaque] with applet and changing style onunload. r=josh

This commit is contained in:
Jim Mathies
2012-02-02 16:55:25 -06:00
parent e58a81ef10
commit 3d686ea274
2 changed files with 8 additions and 1 deletions

View File

@@ -1139,8 +1139,12 @@ nsObjectFrame::IsTransparentMode() const
if (!mInstanceOwner)
return false;
NPWindow *window;
NPWindow *window = nsnull;
mInstanceOwner->GetWindow(window);
if (!window) {
return false;
}
if (window->type != NPWindowTypeDrawable)
return false;