There’s no guarantee that the fullscreen warning has already been closed when the chrome document leaves fullscreen, because the warning is actually dismissed after the content document exits fullscreen as well. So we wait explicitly for it to be closed. Differential Revision: https://phabricator.services.mozilla.com/D250270