Skip to content
Snippets Groups Projects
Verified Commit 944ba8e2 authored by Edgar Chen's avatar Edgar Chen Committed by Pier Angelo Vendrame
Browse files

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

parent 8bcb0276
Branches
Tags
1 merge request!1223Bug 43167: Rebased stable onto 115.16.0esr
......@@ -3018,6 +3018,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