Bug 1577449 - Replace Learn about Send Tab link. r=markh

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Edouard Oger 2019-09-24 22:50:36 +00:00
Родитель a9baf68cab
Коммит 00b4395dc0
2 изменённых файлов: 6 добавлений и 10 удалений

Просмотреть файл

@ -982,9 +982,6 @@ pref("app.support.baseURL", "https://support.mozilla.org/1/firefox/%VERSION%/%OS
pref("app.feedback.baseURL", "https://input.mozilla.org/%LOCALE%/feedback/%APP%/%VERSION%/");
#endif
// base URL for web-based marketing pages
pref("app.productInfo.baseURL", "https://www.mozilla.org/firefox/features/");
// Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror)
pref("security.alternate_certificate_error_page", "certerror");
@ -1457,6 +1454,9 @@ pref("identity.sync.tokenserver.uri", "https://token.services.mozilla.com/1.0/sy
// of making changes to "identity.fxaccounts.*.uri".
pref("identity.fxaccounts.autoconfig.uri", "");
// URL for help link about Send Tab.
pref("identity.sendtabpromo.url", "https://support.mozilla.org/1/firefox/%VERSION%/%OS%/%LOCALE%/send-tab");
// URLs for promo links to mobile browsers. Note that consumers are expected to
// append a value for utm_campaign.
pref("identity.mobilepromo.android", "https://www.mozilla.org/firefox/android/?utm_source=firefox-browser&utm_medium=firefox-browser&utm_campaign=");

Просмотреть файл

@ -115,11 +115,6 @@ var gSync = {
}
}
);
XPCOMUtils.defineLazyPreferenceGetter(
this,
"PRODUCT_INFO_BASE_URL",
"app.productInfo.baseURL"
);
XPCOMUtils.defineLazyPreferenceGetter(
this,
"FXA_ENABLED",
@ -632,8 +627,9 @@ var gSync = {
},
openSendToDevicePromo() {
let url = this.PRODUCT_INFO_BASE_URL;
url += "send-tabs/?utm_source=" + Services.appinfo.name.toLowerCase();
const url = Services.urlFormatter.formatURLPref(
"identity.sendtabpromo.url"
);
switchToTabHavingURI(url, true, { replaceQueryString: true });
},