mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1753772 - Don't call SetDynamicToolbarMaxHeight for non-root BrowserParent. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D138326
This commit is contained in:
parent
37e94b914c
commit
878bb38005
@ -939,8 +939,10 @@ void BrowserParent::InitRendering() {
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
MOZ_ASSERT(widget);
|
||||
|
||||
Unused << SendDynamicToolbarMaxHeightChanged(
|
||||
widget->GetDynamicToolbarMaxHeight());
|
||||
if (GetBrowsingContext()->IsTopContent()) {
|
||||
Unused << SendDynamicToolbarMaxHeightChanged(
|
||||
widget->GetDynamicToolbarMaxHeight());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user