diff --git a/layout/generic/nsObjectFrame.cpp b/layout/generic/nsObjectFrame.cpp index e0f8d1eb8412..709a43bb2af8 100644 --- a/layout/generic/nsObjectFrame.cpp +++ b/layout/generic/nsObjectFrame.cpp @@ -2575,9 +2575,11 @@ NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget(void) if (PR_TRUE == windowless) { - //mPluginWindow.window = nsnull; //XXX this needs to be a HDC mPluginWindow.type = nsPluginWindowType_Drawable; - mPluginWindow.window = GetPluginPort();//~~~ + mPluginWindow.window = nsnull; //~~~ this needs to be a HDC according to the spec, + // but I do not see the right way to release it + // so let's postpone passing HDC till paint event + // when it is really needed. Change spec? } else { diff --git a/layout/html/base/src/nsObjectFrame.cpp b/layout/html/base/src/nsObjectFrame.cpp index e0f8d1eb8412..709a43bb2af8 100644 --- a/layout/html/base/src/nsObjectFrame.cpp +++ b/layout/html/base/src/nsObjectFrame.cpp @@ -2575,9 +2575,11 @@ NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget(void) if (PR_TRUE == windowless) { - //mPluginWindow.window = nsnull; //XXX this needs to be a HDC mPluginWindow.type = nsPluginWindowType_Drawable; - mPluginWindow.window = GetPluginPort();//~~~ + mPluginWindow.window = nsnull; //~~~ this needs to be a HDC according to the spec, + // but I do not see the right way to release it + // so let's postpone passing HDC till paint event + // when it is really needed. Change spec? } else {