feat: Dont hide popup when copying the url, b=no-bug, c=no-component

This commit is contained in:
mr. m
2025-10-03 19:52:50 +02:00
parent a47c3e138f
commit 9b5f2b1148
2 changed files with 4 additions and 5 deletions

View File

@@ -17,7 +17,8 @@
<hbox id="zen-site-data-header">
<toolbarbutton id="zen-site-data-header-share"
data-l10n-id="zen-site-data-share"
flex="1" />
flex="1"
closemenu="none" />
<toolbarbutton id="zen-site-data-header-reader-mode"
command="View:ReaderView"
flex="1" />

View File

@@ -81,13 +81,11 @@ export class nsZenSiteDataPanel {
}
#setSiteHeader() {
const { gReaderMode } = this.window;
{
const button = this.document.getElementById('zen-site-data-header-reader-mode');
const urlbarButton = this.window.document.getElementById('reader-mode-button');
const isActive = gReaderMode?.isActive;
const isVisible = (urlbarButton && !urlbarButton.hidden) || isActive;
const isActive = urlbarButton?.hasAttribute('readeractive');
const isVisible = !urlbarButton?.hidden || isActive;
button.disabled = !isVisible;
if (isActive) {