Brad Werth
authored
Bug 1854820: Make the transition to window normal state work the same on extension windows as it does elsewhere. r=extension-reviewers,robwu a=RyanVM Calling window.restore will return the window to its previous dimensions. Prior to this patch, extension windows transitioning to normal state would add a second step where they would forcibly resize the window to content. The motivating reason for this additional step is some kind of difficulty with macOS windows restoring from other states. Those issues were handled comprehensively in Bug 1631735, and now the extra step is unnecessary and surprising to users. Since the call was being made potentially during a deminimization native transition, the window is at a very small size and expanding it to fit the content is resizing it to a strange small size. Window.restore will do the right thing, so this patch stops calling sizeToContent. Differential Revision: https://phabricator.services.mozilla.com/D189972