mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-27 15:25:09 +00:00
Co-authored-by: mr. m <91018726+mr-cheffy@users.noreply.github.com> Co-authored-by: jababda <jababda@hotmail.com>
36 lines
1.5 KiB
C++
36 lines
1.5 KiB
C++
diff --git a/browser/components/urlbar/UrlbarProvidersManager.sys.mjs b/browser/components/urlbar/UrlbarProvidersManager.sys.mjs
|
|
index 08455d8d5da233639ccebc0e77c0810fb4f674c3..da8092b561c3dd8864e57f5a52a1a643db29ace1 100644
|
|
--- a/browser/components/urlbar/UrlbarProvidersManager.sys.mjs
|
|
+++ b/browser/components/urlbar/UrlbarProvidersManager.sys.mjs
|
|
@@ -913,6 +913,7 @@ export class Query {
|
|
if (
|
|
result.heuristic &&
|
|
this.context.searchMode &&
|
|
+ !(this.context.searchMode.source === lazy.UrlbarUtils.RESULT_SOURCE.ZEN_ACTIONS && result.payload?.zenAction) &&
|
|
(!this.context.trimmedSearchString ||
|
|
(!this.context.searchMode.engineName && !result.autofill))
|
|
) {
|
|
@@ -1043,6 +1044,7 @@ function updateSourcesIfEmpty(context) {
|
|
lazy.UrlbarTokenizer.TYPE.RESTRICT_TITLE,
|
|
lazy.UrlbarTokenizer.TYPE.RESTRICT_URL,
|
|
lazy.UrlbarTokenizer.TYPE.RESTRICT_ACTION,
|
|
+ lazy.UrlbarTokenizer.TYPE.RESTRICT_WORKSPACE,
|
|
].includes(t.type)
|
|
);
|
|
|
|
@@ -1100,6 +1102,14 @@ function updateSourcesIfEmpty(context) {
|
|
acceptedSources.push(source);
|
|
}
|
|
break;
|
|
+ case lazy.UrlbarUtils.RESULT_SOURCE.WORKSPACES:
|
|
+ if (
|
|
+ restrictTokenType === lazy.UrlbarTokenizer.TYPE.RESTRICT_WORKSPACE ||
|
|
+ !restrictTokenType
|
|
+ ) {
|
|
+ acceptedSources.push(source);
|
|
+ }
|
|
+ break;
|
|
case lazy.UrlbarUtils.RESULT_SOURCE.OTHER_LOCAL:
|
|
case lazy.UrlbarUtils.RESULT_SOURCE.ADDON:
|
|
default:
|