Skip to content
Snippets Groups Projects
Commit 7e85a0ee authored by Edgar Chen's avatar Edgar Chen Committed by Richard Pospesel
Browse files

Bug 1828259 - Close XUL popup when entering/exiting fullscreen; r=smaug

parent e366a92e
Branches
No related tags found
No related merge requests found
......@@ -3025,6 +3025,9 @@ void AppWindow::FullscreenChanged(bool aInFullscreen) {
void AppWindow::FinishFullscreenChange(bool aInFullscreen) {
mFullscreenChangeState = FullscreenChangeState::NotChanging;
if (nsXULPopupManager* pm = nsXULPopupManager::GetInstance()) {
pm->Rollup({});
}
if (mDocShell) {
if (nsCOMPtr<nsPIDOMWindowOuter> ourWindow = mDocShell->GetWindow()) {
ourWindow->FinishFullscreenChange(aInFullscreen);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment