Fixed print dialog not opening and fixed website dialogs being clipped

This commit is contained in:
mr. M
2025-01-25 18:04:01 +01:00
parent a7184adc4d
commit 5423aee3d5
2 changed files with 22 additions and 2 deletions

View File

@@ -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);
}
}