Backed out changeset 956306ea34f3 (bug 1350633)

This commit is contained in:
Sebastian Hengst
2017-06-16 22:20:32 +02:00
parent 4b9c36a13e
commit 3ff259dcfb
7 changed files with 23 additions and 41 deletions

View File

@@ -1189,14 +1189,10 @@ PuppetWidget::GetNativeData(uint32_t aDataType)
{
switch (aDataType) {
case NS_NATIVE_SHAREABLE_WINDOW: {
// NOTE: We can not have a tab child in some situations, such as when we're
// rendering to a fake widget for thumbnails.
if (!mTabChild) {
NS_WARNING("Need TabChild to get the nativeWindow from!");
}
MOZ_ASSERT(mTabChild, "Need TabChild to get the nativeWindow from!");
mozilla::WindowsHandle nativeData = 0;
if (mTabChild) {
nativeData = mTabChild->WidgetNativeData();
mTabChild->SendGetWidgetNativeData(&nativeData);
}
return (void*)nativeData;
}