mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-30 04:11:51 +00:00
Merge branch 'dev' of https://github.com/zen-browser/desktop into dev
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
diff --git a/browser/components/extensions/parent/ext-tabs.js b/browser/components/extensions/parent/ext-tabs.js
|
||||
index b47f0510e32d788dfe7c3109474c4512c9900d4a..49697125a2998bbd50d87c54e2c5974baaf9a7e2 100644
|
||||
index 517ea0079c12941a844a4f9e4ba694c6411887ee..510ab14dfa2178c332c9862d6a01b75bd12dfe3b 100644
|
||||
--- a/browser/components/extensions/parent/ext-tabs.js
|
||||
+++ b/browser/components/extensions/parent/ext-tabs.js
|
||||
@@ -468,6 +468,7 @@ this.tabs = class extends ExtensionAPIPersistent {
|
||||
@@ -482,6 +482,7 @@ this.tabs = class extends ExtensionAPIPersistent {
|
||||
}
|
||||
|
||||
let tab = tabManager.getWrapper(event.originalTarget);
|
||||
@@ -10,3 +10,11 @@ index b47f0510e32d788dfe7c3109474c4512c9900d4a..49697125a2998bbd50d87c54e2c5974b
|
||||
|
||||
let changeInfo = {};
|
||||
for (let prop of needed) {
|
||||
@@ -836,6 +837,7 @@ this.tabs = class extends ExtensionAPIPersistent {
|
||||
});
|
||||
}
|
||||
|
||||
+ window.gZenCompactModeManager._nextTimeWillBeActive = active;
|
||||
let nativeTab = window.gBrowser.addTab(url, options);
|
||||
|
||||
if (active) {
|
||||
|
||||
@@ -98,6 +98,10 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#identity-icon-box {
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
:root[zen-single-toolbar='true'] #urlbar:not([breakout-extend='true']) {
|
||||
& #urlbar-input {
|
||||
cursor: default;
|
||||
@@ -135,20 +139,6 @@
|
||||
margin-bottom: auto !important;
|
||||
}
|
||||
|
||||
#identity-box:has(#notification-popup-box:not([hidden='true'])) #identity-icon-box,
|
||||
#identity-box:has(#notification-popup-box:not([hidden='true'])) #identity-permission-box {
|
||||
margin-right: 0px !important;
|
||||
}
|
||||
|
||||
#identity-box:has(#identity-permission-box:is([hasPermissions], [hasSharingIcon])):not(
|
||||
[pageproxystate='invalid']
|
||||
)
|
||||
#identity-icon-box {
|
||||
border-top-right-radius: 0 !important;
|
||||
border-bottom-right-radius: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
#tracking-protection-icon-container,
|
||||
#page-action-buttons {
|
||||
order: 2 !important;
|
||||
@@ -161,7 +151,7 @@
|
||||
#urlbar[breakout-extend='true'] {
|
||||
z-index: 2;
|
||||
|
||||
.urlbar-input-container {
|
||||
:root:not([zen-single-toolbar='true']) & .urlbar-input-container {
|
||||
--urlbar-container-padding: 0px;
|
||||
}
|
||||
|
||||
@@ -246,7 +236,7 @@
|
||||
|
||||
#urlbar:not([open]) {
|
||||
#identity-box:not([pageproxystate='invalid']) {
|
||||
order: 9;
|
||||
order: 2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,6 +257,7 @@
|
||||
margin-bottom: auto;
|
||||
height: 24px; /* double 12px */
|
||||
width: 24px;
|
||||
padding: 4px !important;
|
||||
|
||||
&:hover {
|
||||
background: var(--toolbarbutton-hover-background);
|
||||
@@ -279,20 +270,15 @@
|
||||
|
||||
:root:not([zen-single-toolbar='true']) {
|
||||
#notification-popup-box {
|
||||
border-radius: 999px;
|
||||
margin: 0 4px 0 0 !important;
|
||||
padding: 0 4px;
|
||||
min-width: calc(
|
||||
var(--urlbar-min-height) - 4px - 4 * var(--urlbar-container-padding)
|
||||
) !important;
|
||||
height: calc(var(--urlbar-min-height) - 4px - 4 * var(--urlbar-container-padding)) !important;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
background: transparent;
|
||||
|
||||
& > image {
|
||||
padding: 0;
|
||||
margin-top: auto;
|
||||
margin-bottom: auto;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -387,6 +373,7 @@ button.popup-notification-dropmarker {
|
||||
#identity-box:is(:not(.chromeUI), [pageproxystate='invalid'])
|
||||
#identity-icon-box {
|
||||
border-radius: var(--urlbar-icon-border-radius) !important;
|
||||
min-width: 30px;
|
||||
}
|
||||
|
||||
/* Notification Stack */
|
||||
|
||||
@@ -615,10 +615,12 @@ var gZenCompactModeManager = {
|
||||
this.preference &&
|
||||
!this.isSidebarPotentiallyOpen() &&
|
||||
this._canShowBackgroundTabToast &&
|
||||
!gZenGlanceManager._animating
|
||||
!gZenGlanceManager._animating &&
|
||||
!this._nextTimeWillBeActive
|
||||
) {
|
||||
gZenUIManager.showToast('zen-background-tab-opened-toast');
|
||||
}
|
||||
delete this._nextTimeWillBeActive;
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -43,7 +43,10 @@
|
||||
}
|
||||
|
||||
#handleNewDownload() {
|
||||
if (!Services.prefs.getBoolPref('zen.downloads.download-animation')) {
|
||||
if (
|
||||
!Services.prefs.getBoolPref('zen.downloads.download-animation') ||
|
||||
!ZenMultiWindowFeature.isActiveWindow
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -523,6 +523,7 @@
|
||||
& .tab-audio-button {
|
||||
margin-inline-start: -4px;
|
||||
margin-inline-end: 2px;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
& #titlebar {
|
||||
|
||||
@@ -49,7 +49,7 @@ class ZenCommonUtils final : public nsIZenCommonUtils {
|
||||
#if !defined(XP_MACOSX)
|
||||
static auto PlayHapticFeedbackInternal() -> nsresult {
|
||||
// No-op on non-macOS platforms
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
return NS_OK;
|
||||
}
|
||||
#else
|
||||
static auto PlayHapticFeedbackInternal() -> nsresult;
|
||||
|
||||
Reference in New Issue
Block a user