зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1697003 - Update strings for Firefox Suggest experiment r=adw
Differential Revision: https://phabricator.services.mozilla.com/D107525
This commit is contained in:
Родитель
93c81f5154
Коммит
8d3a00eaf8
|
@ -67,12 +67,12 @@
|
||||||
<hbox id="showQuickSuggestContainer" align="center" hidden="true">
|
<hbox id="showQuickSuggestContainer" align="center" hidden="true">
|
||||||
<checkbox id="showQuickSuggest"
|
<checkbox id="showQuickSuggest"
|
||||||
class="tail-with-learn-more"
|
class="tail-with-learn-more"
|
||||||
label="Show suggested and sponsored results in the address bar"
|
label="Show Firefox Suggest in the address bar (suggested and sponsored results)"
|
||||||
preference="browser.urlbar.suggest.quicksuggest"/>
|
preference="browser.urlbar.suggest.quicksuggest"/>
|
||||||
<label id="showQuickSuggestLearnMore"
|
<label id="showQuickSuggestLearnMore"
|
||||||
class="learnMore"
|
class="learnMore"
|
||||||
is="text-link"
|
is="text-link"
|
||||||
value="Learn more about Firefox Suggests"/>
|
value="Learn more about Firefox Suggest"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
<checkbox id="showSearchSuggestionsPrivateWindows"
|
<checkbox id="showSearchSuggestionsPrivateWindows"
|
||||||
data-l10n-id="search-show-suggestions-private-windows"/>
|
data-l10n-id="search-show-suggestions-private-windows"/>
|
||||||
|
|
|
@ -26,8 +26,8 @@ XPCOMUtils.defineLazyModuleGetters(this, {
|
||||||
const EXPERIMENT_PREF = "quicksuggest.enabled";
|
const EXPERIMENT_PREF = "quicksuggest.enabled";
|
||||||
const SUGGEST_PREF = "suggest.quicksuggest";
|
const SUGGEST_PREF = "suggest.quicksuggest";
|
||||||
|
|
||||||
const NONSPONSORED_ACTION_TEXT = "Firefox Suggests";
|
const NONSPONSORED_ACTION_TEXT = "Firefox Suggest";
|
||||||
const HELP_TITLE = "Learn more about Firefox Suggests";
|
const HELP_TITLE = "Learn more about Firefox Suggest";
|
||||||
|
|
||||||
const TELEMETRY_SCALAR_IMPRESSION =
|
const TELEMETRY_SCALAR_IMPRESSION =
|
||||||
"contextual.services.quicksuggest.impression";
|
"contextual.services.quicksuggest.impression";
|
||||||
|
|
|
@ -27,7 +27,7 @@ const log = console.createInstance({
|
||||||
const RS_COLLECTION = "quicksuggest";
|
const RS_COLLECTION = "quicksuggest";
|
||||||
const RS_PREF = "quicksuggest.enabled";
|
const RS_PREF = "quicksuggest.enabled";
|
||||||
|
|
||||||
// Categories that should show "Firefox Suggests" instead of "Sponsored"
|
// Categories that should show "Firefox Suggest" instead of "Sponsored"
|
||||||
const NONSPONSORED_IAB_CATEGORIES = new Set(["5 - Education"]);
|
const NONSPONSORED_IAB_CATEGORIES = new Set(["5 - Education"]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -527,7 +527,7 @@ contextual.services.topsites.*
|
||||||
|
|
||||||
contextual.services.quicksuggest.*
|
contextual.services.quicksuggest.*
|
||||||
These keyed scalars record impressions and clicks on Quick Suggest results,
|
These keyed scalars record impressions and clicks on Quick Suggest results,
|
||||||
also called Firefox Suggests results, in the address bar. The keys for each
|
also called Firefox Suggest results, in the address bar. The keys for each
|
||||||
scalar are the 1-based indexes of the Quick Suggest results, and the values
|
scalar are the 1-based indexes of the Quick Suggest results, and the values
|
||||||
are the number of impressions or clicks for the corresponding indexes. For
|
are the number of impressions or clicks for the corresponding indexes. For
|
||||||
example, for a Quick Suggest impression at 0-based index 9, the value for key
|
example, for a Quick Suggest impression at 0-based index 9, the value for key
|
||||||
|
@ -552,9 +552,9 @@ contextservices.quicksuggest
|
||||||
It's enabled only when the ``browser.urlbar.quicksuggest.enabled`` pref is
|
It's enabled only when the ``browser.urlbar.quicksuggest.enabled`` pref is
|
||||||
true. An event is recorded when the user toggles the
|
true. An event is recorded when the user toggles the
|
||||||
``browser.urlbar.suggest.quicksuggest`` pref, which corresponds to the
|
``browser.urlbar.suggest.quicksuggest`` pref, which corresponds to the
|
||||||
checkbox in about:preferences#search labeled "Show suggested and sponsored
|
checkbox in about:preferences#search labeled "Show Firefox Suggest in the
|
||||||
results in the address bar". If the user never toggles the pref, then this
|
address bar (suggested and sponsored results)". If the user never toggles
|
||||||
event is never recorded.
|
the pref, then this event is never recorded.
|
||||||
|
|
||||||
The full spec for this event is:
|
The full spec for this event is:
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ function sleep(ms) {
|
||||||
* of the last result.
|
* of the last result.
|
||||||
* @param {boolean} [isSponsored]
|
* @param {boolean} [isSponsored]
|
||||||
* True if the result is expected to be sponsored and false if non-sponsored
|
* True if the result is expected to be sponsored and false if non-sponsored
|
||||||
* (i.e., "Firefox Suggests").
|
* (i.e., "Firefox Suggest").
|
||||||
* @param {object} [win]
|
* @param {object} [win]
|
||||||
* The window in which to read the results from.
|
* The window in which to read the results from.
|
||||||
* @returns {result}
|
* @returns {result}
|
||||||
|
@ -84,7 +84,7 @@ async function assertIsQuickSuggest({
|
||||||
actionText = "Sponsored";
|
actionText = "Sponsored";
|
||||||
} else {
|
} else {
|
||||||
url = `${TEST_URL}?q=nonsponsored`;
|
url = `${TEST_URL}?q=nonsponsored`;
|
||||||
actionText = "Firefox Suggests";
|
actionText = "Firefox Suggest";
|
||||||
}
|
}
|
||||||
Assert.equal(result.url, url, "Result URL");
|
Assert.equal(result.url, url, "Result URL");
|
||||||
Assert.equal(
|
Assert.equal(
|
||||||
|
|
|
@ -6731,7 +6731,7 @@ contextual.services.quicksuggest:
|
||||||
bug_numbers:
|
bug_numbers:
|
||||||
- 1693927
|
- 1693927
|
||||||
description: >
|
description: >
|
||||||
A keyed uint recording how many times the user has viewed Firefox Suggests
|
A keyed uint recording how many times the user has viewed Firefox Suggest
|
||||||
(a.k.a. Quick Suggest) results in the urlbar. The key is the 1-based index
|
(a.k.a. Quick Suggest) results in the urlbar. The key is the 1-based index
|
||||||
of each result.
|
of each result.
|
||||||
expires: never
|
expires: never
|
||||||
|
|
Загрузка…
Ссылка в новой задаче