Bug 683099 - NS_NATIVE_WINDOW value should not be used as IPC shareable . r=roc

This commit is contained in:
Oleg Romashin
2011-08-31 20:01:38 +01:00
parent 537798d8c3
commit ccf7ca6b18
8 changed files with 42 additions and 24 deletions

View File

@@ -817,6 +817,12 @@ nsWindow::GetNativeData(PRUint32 aDataType)
widget = mWidget->scene()->views()[0]->viewport();
return (void *) widget;
}
case NS_NATIVE_SHAREABLE_WINDOW: {
QWidget *widget = GetViewWidget();
return widget ? (void*)widget->winId() : nsnull;
}
default:
NS_WARNING("nsWindow::GetNativeData called with bad value");
return nsnull;