mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-17 15:21:53 +00:00
23 lines
959 B
C++
23 lines
959 B
C++
diff --git a/browser/components/urlbar/UrlbarMuxerStandard.sys.mjs b/browser/components/urlbar/UrlbarMuxerStandard.sys.mjs
|
|
index cdc476a3eb2ee2cb6193d215513b65ed375f6153..bc66d9651e521bda75a3bb9e7f1e4b3bb325be90 100644
|
|
--- a/browser/components/urlbar/UrlbarMuxerStandard.sys.mjs
|
|
+++ b/browser/components/urlbar/UrlbarMuxerStandard.sys.mjs
|
|
@@ -855,6 +855,7 @@ class MuxerUnifiedComplete extends UrlbarMuxer {
|
|
}
|
|
|
|
if (result.providerName == lazy.UrlbarProviderTabToSearch.name) {
|
|
+ return false;
|
|
// Discard the result if a tab-to-search result was added already.
|
|
if (!state.canAddTabToSearch) {
|
|
return false;
|
|
@@ -1501,7 +1502,9 @@ class MuxerUnifiedComplete extends UrlbarMuxer {
|
|
usedLimits.maxResultCount++;
|
|
}
|
|
|
|
+ if (!(result.heuristic && result.source == UrlbarUtils.RESULT_SOURCE.ZEN_ACTIONS)) {
|
|
state.usedResultSpan += span;
|
|
+ }
|
|
this._updateStatePostAdd(result, state);
|
|
|
|
return true;
|