mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-30 23:18:38 +00:00
chore: Clean up old prefs and fixed small details, b=no-bug, c=common, folders, workspaces
This commit is contained in:
@@ -4,9 +4,6 @@
|
|||||||
|
|
||||||
# URL bar and search-related preferences
|
# URL bar and search-related preferences
|
||||||
|
|
||||||
- name: browser.urlbar.unitConversion.enabled
|
|
||||||
value: true
|
|
||||||
|
|
||||||
- name: browser.urlbar.trending.featureGate
|
- name: browser.urlbar.trending.featureGate
|
||||||
value: false
|
value: false
|
||||||
|
|
||||||
@@ -19,16 +16,12 @@
|
|||||||
- name: browser.urlbar.clipboard.featureGate
|
- name: browser.urlbar.clipboard.featureGate
|
||||||
value: true
|
value: true
|
||||||
|
|
||||||
- name: browser.urlbar.suggest.calculator
|
|
||||||
value: true
|
|
||||||
|
|
||||||
- name: browser.urlbar.trimHttps
|
- name: browser.urlbar.trimHttps
|
||||||
value: true
|
value: true
|
||||||
|
|
||||||
- name: browser.urlbar.untrimOnUserInteraction.featureGate
|
- name: browser.urlbar.untrimOnUserInteraction.featureGate
|
||||||
value: true
|
value: true
|
||||||
|
|
||||||
# Keep in sync with browser/components/topsites/constants.mjs
|
|
||||||
- name: browser.urlbar.maxRichResults
|
- name: browser.urlbar.maxRichResults
|
||||||
value: 7
|
value: 7
|
||||||
|
|
||||||
@@ -42,9 +35,6 @@
|
|||||||
- name: browser.search.separatePrivateDefault.ui.enabled
|
- name: browser.search.separatePrivateDefault.ui.enabled
|
||||||
value: true
|
value: true
|
||||||
|
|
||||||
- name: browser.urlbar.update2.engineAliasRefresh
|
|
||||||
value: true
|
|
||||||
|
|
||||||
- name: browser.urlbar.quicksuggest.enabled
|
- name: browser.urlbar.quicksuggest.enabled
|
||||||
value: false
|
value: false
|
||||||
locked: true
|
locked: true
|
||||||
@@ -66,12 +56,6 @@
|
|||||||
- name: browser.formfill.enable
|
- name: browser.formfill.enable
|
||||||
value: false
|
value: false
|
||||||
|
|
||||||
- name: security.insecure_connection_text.enabled
|
|
||||||
value: true
|
|
||||||
|
|
||||||
- name: security.insecure_connection_text.pbmode.enabled
|
|
||||||
value: true
|
|
||||||
|
|
||||||
- name: network.IDN_show_punycode
|
- name: network.IDN_show_punycode
|
||||||
value: true
|
value: true
|
||||||
|
|
||||||
|
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/browser/components/urlbar/UrlbarProvidersManager.sys.mjs b/browser/components/urlbar/UrlbarProvidersManager.sys.mjs
|
||||||
|
index 555273f6ea1efd77aa3062b9910bbfe28568775d..c8aae86e1233d256e538970d58fd0febed745893 100644
|
||||||
|
--- a/browser/components/urlbar/UrlbarProvidersManager.sys.mjs
|
||||||
|
+++ b/browser/components/urlbar/UrlbarProvidersManager.sys.mjs
|
||||||
|
@@ -138,7 +138,7 @@ class ProvidersManager {
|
||||||
|
// To improve dataflow and reduce UI work, when a result is added we may notify
|
||||||
|
// it to the controller after a delay, so that we can chunk results in that
|
||||||
|
// timeframe into a single call. See _notifyResultsFromProvider for details.
|
||||||
|
- this.CHUNK_RESULTS_DELAY_MS = 16;
|
||||||
|
+ this.CHUNK_RESULTS_DELAY_MS = 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
@@ -1,5 +1,5 @@
|
|||||||
diff --git a/browser/components/urlbar/UrlbarView.sys.mjs b/browser/components/urlbar/UrlbarView.sys.mjs
|
diff --git a/browser/components/urlbar/UrlbarView.sys.mjs b/browser/components/urlbar/UrlbarView.sys.mjs
|
||||||
index b3608bb8b851979b893da9c83e86d08b54288047..021ce0b80015256767b88132e99c67fa8ddfd2c4 100644
|
index b3608bb8b851979b893da9c83e86d08b54288047..97ffb0b855b1f1c3fe5c4081aa1ec03ceda82b05 100644
|
||||||
--- a/browser/components/urlbar/UrlbarView.sys.mjs
|
--- a/browser/components/urlbar/UrlbarView.sys.mjs
|
||||||
+++ b/browser/components/urlbar/UrlbarView.sys.mjs
|
+++ b/browser/components/urlbar/UrlbarView.sys.mjs
|
||||||
@@ -609,7 +609,7 @@ export class UrlbarView {
|
@@ -609,7 +609,7 @@ export class UrlbarView {
|
||||||
@@ -16,7 +16,7 @@ index b3608bb8b851979b893da9c83e86d08b54288047..021ce0b80015256767b88132e99c67fa
|
|||||||
});
|
});
|
||||||
let canBeVisible =
|
let canBeVisible =
|
||||||
- newSpanCount <= this.#queryContext.maxResults && !seenMisplacedResult;
|
- newSpanCount <= this.#queryContext.maxResults && !seenMisplacedResult;
|
||||||
+ newSpanCount < this.#queryContext.maxResults+1 && !seenMisplacedResult;
|
+ newSpanCount < this.#queryContext.maxResults && !seenMisplacedResult;
|
||||||
if (result.isHiddenExposure) {
|
if (result.isHiddenExposure) {
|
||||||
if (canBeVisible) {
|
if (canBeVisible) {
|
||||||
this.controller.engagementEvent.addExposure(
|
this.controller.engagementEvent.addExposure(
|
||||||
|
@@ -560,12 +560,12 @@ button.popup-notification-dropmarker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.urlbarView-row[has-action]:is([type='switchtab'], [type='remotetab'], [type='clipboard']) {
|
.urlbarView-row[has-action]:is([type='switchtab'], [type='remotetab'], [type='clipboard']) {
|
||||||
& .urlbarView-action {
|
& .urlbarView-action:last-child {
|
||||||
margin-left: auto !important;
|
margin-left: auto !important;
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:is([type='switchtab'], [type='remotetab']) .urlbarView-action {
|
&:is([type='switchtab'], [type='remotetab']) .urlbarView-action:last-child {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@@ -92,7 +92,7 @@
|
|||||||
this.labelElement.parentElement.setAttribute('context', 'zenFolderActions');
|
this.labelElement.parentElement.setAttribute('context', 'zenFolderActions');
|
||||||
|
|
||||||
this.labelElement.onRenameFinished = (newLabel) => {
|
this.labelElement.onRenameFinished = (newLabel) => {
|
||||||
this.name = newLabel;
|
this.name = newLabel.trim() || 'Folder';
|
||||||
const event = new CustomEvent('ZenFolderRenamed', {
|
const event = new CustomEvent('ZenFolderRenamed', {
|
||||||
bubbles: true,
|
bubbles: true,
|
||||||
});
|
});
|
||||||
|
@@ -1089,7 +1089,7 @@
|
|||||||
return color.c;
|
return color.c;
|
||||||
}
|
}
|
||||||
let opacity = this.currentOpacity;
|
let opacity = this.currentOpacity;
|
||||||
if (forToolbar) {
|
if (forToolbar && !this.#allowTransparencyOnSidebar) {
|
||||||
color = this.blendColors(
|
color = this.blendColors(
|
||||||
color.c,
|
color.c,
|
||||||
this.getToolbarModifiedBaseRaw().slice(0, 3),
|
this.getToolbarModifiedBaseRaw().slice(0, 3),
|
||||||
|
Reference in New Issue
Block a user