Backed out changeset e88b44182dda (bug 1698883) for causing bc failures in browser_documentnavigation.js and browser_protectionsUI.js.

CLOSED TREE
This commit is contained in:
Brindusan Cristian 2021-06-17 22:43:47 +03:00
Родитель c69960a99b
Коммит 20b73f0fc2
7 изменённых файлов: 79 добавлений и 44 удалений

Просмотреть файл

@ -94,11 +94,10 @@
<!-- Clear Site Data Button -->
<vbox hidden="true"
id="identity-popup-clear-sitedata-footer">
<toolbarseparator />
<toolbarbutton id="identity-popup-clear-sitedata-button"
id="identity-popup-clear-sitedata-footer"
class="panel-footer panel-footer-menulike">
<button id="identity-popup-clear-sitedata-button"
data-l10n-id="identity-clear-site-data"
class="subviewbutton panel-subview-footer-button"
oncommand="gIdentityHandler.clearSiteData(event);"/>
</vbox>
</panelview>
@ -184,12 +183,10 @@
oncommand="gIdentityHandler.enableMixedContentProtection()"/>
</vbox>
<vbox id="identity-popup-more-info-footer">
<vbox id="identity-popup-more-info-footer" class="panel-footer panel-footer-menulike">
<!-- More Security Information -->
<toolbarseparator />
<toolbarbutton id="identity-popup-more-info"
<button id="identity-popup-more-info"
data-l10n-id="identity-more-info-link-text"
class="subviewbutton panel-subview-footer-button"
oncommand="gIdentityHandler.handleMoreInfoClick(event);"/>
</vbox>

Просмотреть файл

@ -234,11 +234,11 @@
<toolbarseparator></toolbarseparator>
<vbox id="protections-popup-trackersView-list" class="protections-popup-list">
</vbox>
<toolbarseparator></toolbarseparator>
<toolbarbutton id="protections-popup-trackersView-settings-button"
data-l10n-id="protections-panel-content-blocking-manage-settings"
class="subviewbutton panel-subview-footer-button"
oncommand="gProtectionsHandler.openPreferences(); gProtectionsHandler.recordClick('subview_settings', 'trackers');"/>
<vbox class="panel-footer panel-footer-menulike">
<button id="protections-popup-trackersView-settings-button"
data-l10n-id="protections-panel-content-blocking-manage-settings"
oncommand="gProtectionsHandler.openPreferences(); gProtectionsHandler.recordClick('subview_settings', 'trackers');"/>
</vbox>
</panelview>
<!-- Social Block SubView -->
@ -263,11 +263,11 @@
<toolbarseparator></toolbarseparator>
<vbox id="protections-popup-socialblockView-list" class="protections-popup-list">
</vbox>
<toolbarseparator></toolbarseparator>
<toolbarbutton id="protections-popup-socialblockView-settings-button"
data-l10n-id="protections-panel-content-blocking-manage-settings"
class="subviewbutton panel-subview-footer-button"
oncommand="gProtectionsHandler.openPreferences(); gProtectionsHandler.recordClick('subview_settings', 'social');"/>
<vbox class="panel-footer panel-footer-menulike">
<button id="protections-popup-socialblockView-settings-button"
data-l10n-id="protections-panel-content-blocking-manage-settings"
oncommand="gProtectionsHandler.openPreferences(); gProtectionsHandler.recordClick('subview_settings', 'social');"/>
</vbox>
</panelview>
<!-- Cookies SubView -->
@ -280,11 +280,11 @@
<toolbarseparator></toolbarseparator>
<vbox id="protections-popup-cookiesView-list" class="protections-popup-list">
</vbox>
<toolbarseparator></toolbarseparator>
<toolbarbutton id="protections-popup-cookiesView-settings-button"
<vbox class="panel-footer panel-footer-menulike">
<button id="protections-popup-cookiesView-settings-button"
data-l10n-id="protections-panel-content-blocking-manage-settings"
class="subviewbutton panel-subview-footer-button"
oncommand="gProtectionsHandler.openPreferences(); gProtectionsHandler.recordClick('subview_settings', 'cookies');"/>
</vbox>
</panelview>
<!-- Fingerprinters SubView -->
@ -309,11 +309,11 @@
<toolbarseparator></toolbarseparator>
<vbox id="protections-popup-fingerprintersView-list" class="protections-popup-list">
</vbox>
<toolbarseparator></toolbarseparator>
<toolbarbutton id="protections-popup-fingerprintersView-settings-button"
<vbox class="panel-footer panel-footer-menulike">
<button id="protections-popup-fingerprintersView-settings-button"
data-l10n-id="protections-panel-content-blocking-manage-settings"
class="subviewbutton panel-subview-footer-button"
oncommand="gProtectionsHandler.openPreferences(); gProtectionsHandler.recordClick('subview_settings', 'fingerprinters');"/>
</vbox>
</panelview>
<!-- Cryptominers SubView -->
@ -338,11 +338,11 @@
<toolbarseparator></toolbarseparator>
<vbox id="protections-popup-cryptominersView-list" class="protections-popup-list">
</vbox>
<toolbarseparator></toolbarseparator>
<toolbarbutton id="protections-popup-cryptominersView-settings-button"
<vbox class="panel-footer panel-footer-menulike">
<button id="protections-popup-cryptominersView-settings-button"
data-l10n-id="protections-panel-content-blocking-manage-settings"
class="subviewbutton panel-subview-footer-button"
oncommand="gProtectionsHandler.openPreferences(); gProtectionsHandler.recordClick('subview_settings', 'cryptominers');"/>
</vbox>
</panelview>
<!-- Send Report SubView -->

Просмотреть файл

@ -95,7 +95,11 @@
padding: 0.62em;
}
#downloadsHistory,
#downloadsFooterButtons {
margin: 0;
}
#downloadsHistory {
padding: 0.62em;
margin: 0.62em 0 0;
}

Просмотреть файл

@ -146,15 +146,15 @@
crop="end"/>
</vbox>
</hbox>
<vbox id="downloadsFooterButtons">
<toolbarseparator />
<toolbarbutton id="downloadsHistory"
<hbox id="downloadsFooterButtons"
class="panel-footer panel-footer-menulike">
<button id="downloadsHistory"
data-l10n-id="downloads-history"
class="downloadsPanelFooterButton subviewbutton panel-subview-footer-button"
class="downloadsPanelFooterButton"
flex="1"
oncommand="DownloadsPanel.showDownloadsHistory();"
pack="start"/>
</vbox>
</hbox>
</stack>
</vbox>
</panelview>

Просмотреть файл

@ -906,6 +906,10 @@ description#identity-popup-content-verifier,
/* Protection popup footer categories */
#protections-popup-footer {
padding: var(--vertical-section-padding) 0;
}
#protections-popup-trackers-blocked-counter-box {
margin-inline-end: var(--horizontal-padding);
visibility: hidden;

Просмотреть файл

@ -512,6 +512,13 @@ panelview[id^=PanelUI-webext-] {
overflow: hidden;
}
panelview:not([mainview]) .toolbarbutton-text,
.cui-widget-panel .toolbarbutton-text,
#overflowMenu-customize-button > .toolbarbutton-text {
text-align: start;
display: -moz-box;
}
.cui-widget-panel,
.cui-widget-panel::part(arrowcontent) {
--arrowpanel-padding: 4px 0;
@ -1530,11 +1537,6 @@ panelview .toolbarbutton-1,
margin: 0;
}
.subviewbutton > .toolbarbutton-text {
text-align: start;
display: -moz-box;
}
.panel-subview-footer-button {
margin-bottom: 6px;
}
@ -1818,10 +1820,9 @@ menuitem.panel-subview-footer@menuStateActive@,
.PanelUI-subView toolbarseparator,
#permission-popup-mainView > toolbarseparator,
#protections-popup-multiView toolbarseparator,
#identity-popup-mainView toolbarseparator,
#identity-popup-mainView > toolbarseparator,
#identity-popup-securityView > toolbarseparator,
#editBookmarkPanel toolbarseparator,
#downloadsPanel-mainView toolbarseparator,
.cui-widget-panelview menuseparator,
.cui-widget-panel toolbarseparator {
appearance: none;

Просмотреть файл

@ -111,6 +111,12 @@ popupnotification {
margin: 8px 16px 16px;
}
.panel-footer.panel-footer-menulike {
margin-inline: 8px;
margin-bottom: 6px;
border-top: 1px solid var(--panel-separator-color);
}
.panel-footer > button {
appearance: none;
border: 0;
@ -121,6 +127,29 @@ popupnotification {
margin-inline: 8px 0;
}
.panel-footer.panel-footer-menulike > button {
font-weight: unset;
padding: 8px;
margin: 4px 0 0;
}
.panel-footer.panel-footer-menulike > button:focus-visible {
box-shadow: var(--panelview-toolbarbutton-focus-box-shadow);
}
.panel-footer.panel-footer-menulike > button:hover:active {
color: inherit;
}
.panel-footer.panel-footer-menulike > button > .button-box {
padding: 0;
display: inline;
}
.panel-footer.panel-footer-menulike > button > .button-box > .button-text {
margin-inline: 0;
}
.panel-footer > .popup-notification-dropmarker {
margin-inline-start: 0;
border-start-start-radius: 0;
@ -136,15 +165,15 @@ popupnotification {
color: var(--button-color, inherit);
}
.panel-footer > button {
.panel-footer:not(.panel-footer-menulike) > button {
background-color: var(--button-bgcolor, color-mix(in srgb, currentColor 13%, transparent));
}
.panel-footer > button[disabled] {
.panel-footer:not(.panel-footer-menulike) > button[disabled] {
opacity: 0.4;
}
.panel-footer > button:focus-visible {
.panel-footer:not(.panel-footer-menulike) > button:focus-visible {
outline: 2px solid var(--focus-outline-color);
outline-offset: var(--focus-outline-offset, 2px);
}
@ -170,7 +199,7 @@ popupnotification {
background-color: var(--button-primary-active-bgcolor);
}
.panel-footer > button > .button-box {
.panel-footer:not(.panel-footer-menulike) > button > .button-box {
padding: 0;
}