fix 152429, flash in an iframe crashes with Gdk-ERROR **: BadDrawable; r=bzbarsky, sr=jst, a=asa

This commit is contained in:
serge%netscape.com 2002-07-26 23:30:27 +00:00
parent 3474459036
commit de23207907
2 changed files with 8 additions and 4 deletions

View File

@ -3800,8 +3800,10 @@ NS_IMETHODIMP nsPluginInstanceOwner::Init(nsIPresContext* aPresContext, nsObject
if (cvc) {
nsCOMPtr<nsIContentViewer> cv;
cvc->GetContentViewer(getter_AddRefs(cv));
if (cv)
cv->Show();
if (cv) {
cv->SetSticky(PR_FALSE);
cv->Show();
}
}
}

View File

@ -3800,8 +3800,10 @@ NS_IMETHODIMP nsPluginInstanceOwner::Init(nsIPresContext* aPresContext, nsObject
if (cvc) {
nsCOMPtr<nsIContentViewer> cv;
cvc->GetContentViewer(getter_AddRefs(cv));
if (cv)
cv->Show();
if (cv) {
cv->SetSticky(PR_FALSE);
cv->Show();
}
}
}