The patch that that regressed this started using the widget state rather than the DOM state to return full-screen. It seems on macOS they sometimes can get out of sync, in the failure from comment 0 the window is really full-screen. We seemed to account for some of this in: https://searchfox.org/mozilla-central/rev/00e504083572d47f2199168f0f79c75c0ddaefb3/browser/components/extensions/test/browser/browser_ext_windows_create.js#31-36 Make sure we exit full-screen as appropriate if DOM thinks we're fullscreen. This passes verify and at worst it should be harmless. Differential Revision: https://phabricator.services.mozilla.com/D155353