Bug 1182247 - Only RegisterPluginForGeometryUpdates in nsPluginFrame::EndSwapDocShells if mInstanceOwner is non-null. r=tnikkel

Having a non-null mInstanceOwner corresponds to when registration
normally happens (from nsPluginInstanceOwner::SetFrame), and it's
disconnecting the instance owner that leads to unregistration.

MozReview-Commit-ID: 3X15t9zoXIj
This commit is contained in:
L. David Baron 2016-03-17 17:57:53 -07:00
Родитель b0b9bfd047
Коммит 01abdf308c
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -1866,7 +1866,9 @@ nsPluginFrame::EndSwapDocShells(nsISupports* aSupports, void*)
}
}
objectFrame->RegisterPluginForGeometryUpdates();
if (objectFrame->mInstanceOwner) {
objectFrame->RegisterPluginForGeometryUpdates();
}
}
nsIFrame*