mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 801763. Don't try to update geometry for plugin widgets with no parent. r=mats
--HG-- extra : rebase_source : d7d0f7c5536adc2cd0ad77c2b3169410f237d206
This commit is contained in:
parent
c02fbc2f2e
commit
fe1244558e
@ -120,6 +120,14 @@ public:
|
||||
void GetWidgetConfiguration(nsTArray<nsIWidget::Configuration>* aConfigurations)
|
||||
{
|
||||
if (mWidget) {
|
||||
if (!mWidget->GetParent()) {
|
||||
// Plugin widgets should not be toplevel except when they're out of the
|
||||
// document, in which case the plugin should not be registered for
|
||||
// geometry updates and this should not be called. But apparently we
|
||||
// have bugs where mWidget sometimes is toplevel here. Bail out.
|
||||
NS_ERROR("Plugin widgets registered for geometry updates should not be toplevel");
|
||||
return;
|
||||
}
|
||||
nsIWidget::Configuration* configuration = aConfigurations->AppendElement();
|
||||
configuration->mChild = mWidget;
|
||||
configuration->mBounds = mNextConfigurationBounds;
|
||||
|
Loading…
Reference in New Issue
Block a user