It seems that current widget size constraint needs to be applied to newBounds.
Bug 1710533 Comment 6 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
It seems that current widget size constraint needs to be applied to newBounds. But nsBaseWidget::ResizeClient() looks a bit tricky.
It seems that current widget size constraint needs to be applied to newBounds. But [nsBaseWidget::ResizeClient()](https://searchfox.org/mozilla-central/rev/aec7c53cdbbff65305d41c9d805a70efc0e902ed/widget/nsBaseWidget.cpp#1503) looks a bit tricky.