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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user