Flush layout before starting to pump data into plug-ins if we started the data

load ourselves.  Fixes various issues with a number of plug-ins that expect
NPP_SetWindow() to have been called before NPP_WriteReady or NPP_Write.  Bug
381512, r=biesi, sr=jst
This commit is contained in:
2007-08-02 10:54:36 -07:00
parent 9fff16417d
commit cc343c291c
4 changed files with 21 additions and 11 deletions

View File

@@ -967,7 +967,7 @@ nsObjectFrame::DidReflow(nsPresContext* aPresContext,
}
// this will call pi->SetWindow and take care of window subclassing
// if needed, see bug 132759
// if needed, see bug 132759.
window->CallSetWindow(pi);
mInstanceOwner->ReleasePluginPort((nsPluginPort *)window->window);