Skip to content

Commit

Permalink
Bug 1850993 - Clear status panel when entering DOM Fullscreen. r=Gijs
Browse files Browse the repository at this point in the history
  • Loading branch information
daogottwald committed Nov 25, 2023
1 parent 8995b1b commit 964e3d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions browser/base/content/browser-fullScreenAndPointerLock.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ var FullScreen = {
}
document.documentElement.setAttribute("inDOMFullscreen", true);

XULBrowserWindow.onEnterDOMFullscreen();

if (gFindBarInitialized) {
gFindBar.close(true);
}
Expand Down
9 changes: 9 additions & 0 deletions browser/base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5001,6 +5001,15 @@ var XULBrowserWindow = {
LinkTargetDisplay.update();
},

onEnterDOMFullscreen() {
// Clear the status panel.
this.hideOverLinkImmediately = true;
this.setOverLink("");
this.hideOverLinkImmediately = false;
this.status = "";
this.setDefaultStatus("");
},

showTooltip(xDevPix, yDevPix, tooltip, direction, browser) {
if (
Cc["@mozilla.org/widget/dragservice;1"]
Expand Down

0 comments on commit 964e3d5

Please sign in to comment.