Skip to content

Commit

Permalink
Fixed print dialog not opening and fixed website dialogs being clipped
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-balades committed Jan 25, 2025
1 parent a7184ad commit 5423aee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/browser/base/zen-components/ZenGlanceManager.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,15 @@

onTabOpen(browser, uri) {
let tab = gBrowser.getTabForBrowser(browser);
if (this.shouldOpenTabInGlance(tab, uri)) {
this.openGlance({ url: undefined, x: 0, y: 0, width: 0, height: 0 }, tab, tab.owner);
if (!tab) {
return;
}
try {
if (this.shouldOpenTabInGlance(tab, uri)) {
this.openGlance({ url: undefined, x: 0, y: 0, width: 0, height: 0 }, tab, tab.owner);
}
} catch (e) {
console.error(e);
}
}

Expand Down
13 changes: 13 additions & 0 deletions src/browser/themes/shared/tabbrowser/content-area-css.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/browser/themes/shared/tabbrowser/content-area.css b/browser/themes/shared/tabbrowser/content-area.css
index 5c721ee07f0be1318a50cb381ddf59550a04d496..fa2d21687dd8ea7dd03fb4cc2952fe783782a955 100644
--- a/browser/themes/shared/tabbrowser/content-area.css
+++ b/browser/themes/shared/tabbrowser/content-area.css
@@ -237,7 +237,7 @@

.dialogStack {
z-index: var(--browser-stack-z-index-dialog-stack);
- position: absolute;
+ position: fixed;
inset: 0;

/* Hide tab-modal dialogs when a window-modal one is up. */

0 comments on commit 5423aee

Please sign in to comment.