179822: Flash4 / Flash5 / Shockwave and other plugins crash.

Give an unicode option when SubClassing the widget window.
/r=peterl, /sr=kin


git-svn-id: svn://10.0.0.236/trunk@134742 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
yokoyama%netscape.com
2002-12-04 01:17:01 +00:00
parent b0070e1509
commit fd2d437d51
3 changed files with 12 additions and 8 deletions

View File

@@ -809,9 +809,10 @@ nsObjectFrame::CreateWidget(nsIPresContext* aPresContext,
viewMan->InsertChild(parView, view, nsnull, PR_TRUE);
if(aViewOnly != PR_TRUE) {
result = view->CreateWidget(kWidgetCID);
// Bug 179822: Create widget and allow non-unicode SubClass
nsWidgetInitData initData;
initData.mUnicode = PR_FALSE;
result = view->CreateWidget(kWidgetCID, &initData);
if (NS_OK != result) {
result = NS_OK; //XXX why OK? MMP
goto exit; //XXX sue me. MMP

View File

@@ -809,9 +809,10 @@ nsObjectFrame::CreateWidget(nsIPresContext* aPresContext,
viewMan->InsertChild(parView, view, nsnull, PR_TRUE);
if(aViewOnly != PR_TRUE) {
result = view->CreateWidget(kWidgetCID);
// Bug 179822: Create widget and allow non-unicode SubClass
nsWidgetInitData initData;
initData.mUnicode = PR_FALSE;
result = view->CreateWidget(kWidgetCID, &initData);
if (NS_OK != result) {
result = NS_OK; //XXX why OK? MMP
goto exit; //XXX sue me. MMP

View File

@@ -553,8 +553,10 @@ PluginViewerImpl::MakeWindow(nsNativeWidget aParent,
return rv;
}
mWindow->Create(aParent, aBounds,HandlePluginEvent, aDeviceContext);
// Bug 179822: Create widget and allow non-unicode SubClass
nsWidgetInitData initData;
initData.mUnicode = PR_FALSE;
mWindow->Create(aParent, aBounds,HandlePluginEvent, aDeviceContext, nsnull, nsnull, &initData);
mWindow->SetClientData(this);
Show();
return rv;