feat: Dont hide browsers with pending paints and align autmatic glance to the tabs panel, b=no-bug, c=glance

This commit is contained in:
mr. m
2025-10-21 00:03:43 +02:00
parent b63cefa98b
commit 346ef9c158
2 changed files with 15 additions and 3 deletions

View File

@@ -1,8 +1,16 @@
diff --git a/browser/themes/shared/tabbrowser/content-area.css b/browser/themes/shared/tabbrowser/content-area.css
index e06addf1602dc26ff4e75a8db6251231690f3f80..86e2cd0194bb37fa140a2f93eccfdd61419a9aec 100644
index e06addf1602dc26ff4e75a8db6251231690f3f80..ffac005d5040852eda8f574f65f2eadf5ecbd642 100644
--- a/browser/themes/shared/tabbrowser/content-area.css
+++ b/browser/themes/shared/tabbrowser/content-area.css
@@ -276,7 +276,7 @@
@@ -134,7 +134,6 @@
}
browser:is([blank], [pendingpaint]) {
- opacity: 0;
}
browser[type="content"] {
@@ -276,7 +275,7 @@
.dialogStack {
z-index: var(--browser-stack-z-index-dialog-stack);

View File

@@ -1355,12 +1355,16 @@
* @param {Tab} tab - The tab to open glance for
*/
#openGlanceForTab(tab) {
const browserRect = window.windowUtils.getBoundsWithoutFlushing(gBrowser.tabbox);
const browserRect = window.windowUtils.getBoundsWithoutFlushing(gBrowser.tabpanels);
const clickPosition = gZenUIManager._lastClickPosition || {
clientX: browserRect.width / 2,
clientY: browserRect.height / 2,
};
// Make it relative to the tabpanels
clickPosition.clientX -= browserRect.left;
clickPosition.clientY -= browserRect.top;
this.openGlance(
{
url: undefined,