fix #94895, Flash movie is constantly stopped and restarted, r=peterl, sr=beard

git-svn-id: svn://10.0.0.236/trunk@118712 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
serge%netscape.com
2002-04-11 03:27:00 +00:00
parent cbd505bd3b
commit a65806ef7b
3 changed files with 25 additions and 19 deletions

View File

@@ -673,11 +673,15 @@ NS_IMETHODIMP ns4xPluginInstance::Stop(void)
NPError error;
#if defined(MOZ_WIDGET_GTK)
if (mXtBin)
if (mXtBin) {
gtk_widget_destroy(mXtBin);
mXtBin = 0;
}
#elif defined(MOZ_WIDGET_XLIB)
if (mXlibXtBin)
if (mXlibXtBin) {
mXlibXtBin->xtbin_destroy();
mXlibXtBin = 0;
}
#endif
if(!mStarted)
@@ -838,7 +842,7 @@ NS_IMETHODIMP ns4xPluginInstance::SetWindow(nsPluginWindow* window)
window->width, window->height, win);
#endif
#if 1
#if 0
// if we destroyed the plugin when we left the page, we could remove this
// code (i believe) the problem here is that the window gets destroyed when
// its parent, etc does by changing a page the plugin instance is being