[tbb-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.11.0esr-13.0-1] Bug 1828259 - Close XUL popup when entering/exiting fullscreen; r=smaug

ma1 (@ma1) git at gitlab.torproject.org
Mon Jun 10 18:25:29 UTC 2024



ma1 pushed to branch mullvad-browser-115.11.0esr-13.0-1 at The Tor Project / Applications / Mullvad Browser


Commits:
262d3d99 by Edgar Chen at 2024-06-10T20:24:04+02:00
Bug 1828259 - Close XUL popup when entering/exiting fullscreen; r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D209355
- - - - -


1 changed file:

- xpfe/appshell/AppWindow.cpp


Changes:

=====================================
xpfe/appshell/AppWindow.cpp
=====================================
@@ -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);



View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/262d3d99cc1fbc4b3aea211ca6190d432b92e5fd

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/262d3d99cc1fbc4b3aea211ca6190d432b92e5fd
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240610/9b4af940/attachment.htm>


More information about the tbb-commits mailing list