Bug 683099 - NS_NATIVE_WINDOW value should not be used as IPC shareable . r=roc
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user