Backed out changeset 36d662fbab77 (bug 1350633) for failures in test_group_mouseevents.html a=backout

MozReview-Commit-ID: Gh9eflBppgq
This commit is contained in:
Wes Kocher
2017-06-21 17:12:20 -07:00
parent 292a031947
commit c1ba0528dc
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;
}