Skip to content

Commit

Permalink
Bug 1855375: Basic implementation for Yelp Suggestions r=fluent-revie…
Browse files Browse the repository at this point in the history
…wers,flod,adw

Differential Revision: https://phabricator.services.mozilla.com/D189335

UltraBlame original commit: ce5e6208f354b6b60ff2f59973e05e706d225bc5
  • Loading branch information
marco-c committed Jan 19, 2024
1 parent a8278d2 commit 261f844
Show file tree
Hide file tree
Showing 12 changed files with 1,969 additions and 0 deletions.
14 changes: 14 additions & 0 deletions browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -3368,6 +3368,20 @@ browser
.
urlbar
.
suggest
.
yelp
"
true
)
;
pref
(
"
browser
.
urlbar
.
addons
.
minKeywordLength
Expand Down
20 changes: 20 additions & 0 deletions browser/components/urlbar/QuickSuggest.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,26 @@ sys
.
mjs
"
YelpSuggestions
:
"
resource
:
/
/
/
modules
/
urlbar
/
private
/
YelpSuggestions
.
sys
.
mjs
"
}
;
const
Expand Down
51 changes: 51 additions & 0 deletions browser/components/urlbar/UrlbarPrefs.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2514,6 +2514,57 @@ true
]
/
/
If
browser
.
urlbar
.
yelp
.
featureGate
is
true
this
controls
whether
/
/
Yelp
suggestions
are
turned
on
.
[
"
suggest
.
yelp
"
true
]
/
/
Feature
gate
pref
for
Yelp
suggestions
in
the
urlbar
.
[
"
yelp
.
featureGate
"
false
]
/
/
JSON
'
ed
Expand Down
41 changes: 41 additions & 0 deletions browser/components/urlbar/content/enUS-searchFeatures.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,47 @@ These
strings
are
used
for
Yelp
suggestions
in
the
urlbar
.
#
This
string
is
shown
in
Yelp
suggestions
and
indicates
the
suggestion
is
for
#
Yelp
.
firefox
-
suggest
-
yelp
-
bottom
-
text
=
Yelp
#
#
These
strings
are
used
in
the
preferences
Expand Down
40 changes: 40 additions & 0 deletions browser/components/urlbar/docs/preferences.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1746,6 +1746,46 @@ browser
.
urlbar
.
suggest
.
yelp
(
boolean
default
:
true
)
If
browser
.
urlbar
.
yelp
.
featureGate
is
true
this
controls
whether
Yelp
suggestions
are
turned
on
.
Otherwise
they
won
'
t
be
shown
.
browser
.
urlbar
.
switchTabs
.
adoptIntoActiveWindow
Expand Down
9 changes: 9 additions & 0 deletions browser/components/urlbar/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,15 @@ sys
.
mjs
"
"
private
/
YelpSuggestions
.
sys
.
mjs
"
]
TESTING_JS_MODULES
+
Expand Down
Loading

0 comments on commit 261f844

Please sign in to comment.