зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1193179 - Use entrypoint query param for FxA metrics, not entryPoint. r=markh
--HG-- extra : rebase_source : 37823fa69b81c6ad6fcef9b72ac32362c6b36f5c
This commit is contained in:
Родитель
970d4a0c2b
Коммит
01f350dc0d
|
@ -447,7 +447,7 @@ let gFxAccounts = {
|
|||
this.openPreferences();
|
||||
break;
|
||||
default:
|
||||
this.openAccountsPage(null, { entryPoint: "menupanel" });
|
||||
this.openAccountsPage(null, { entrypoint: "menupanel" });
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -459,12 +459,12 @@ let gFxAccounts = {
|
|||
},
|
||||
|
||||
openAccountsPage: function (action, urlParams={}) {
|
||||
// An entryPoint param is used for server-side metrics. If the current tab
|
||||
// An entrypoint param is used for server-side metrics. If the current tab
|
||||
// is UITour, assume that it initiated the call to this method and override
|
||||
// the entryPoint accordingly.
|
||||
// the entrypoint accordingly.
|
||||
if (UITour.tourBrowsersByWindow.get(window) &&
|
||||
UITour.tourBrowsersByWindow.get(window).has(gBrowser.selectedBrowser)) {
|
||||
urlParams.entryPoint = "uitour";
|
||||
urlParams.entrypoint = "uitour";
|
||||
}
|
||||
let params = new URLSearchParams();
|
||||
if (action) {
|
||||
|
@ -482,7 +482,7 @@ let gFxAccounts = {
|
|||
},
|
||||
|
||||
openSignInAgainPage: function (entryPoint) {
|
||||
this.openAccountsPage("reauth", { entryPoint: entryPoint });
|
||||
this.openAccountsPage("reauth", { entrypoint: entryPoint });
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ add_task(function* test_nouser() {
|
|||
Assert.ok(!panelUIFooter.hasAttribute("fxastatus"), "no fxsstatus when signed out");
|
||||
Assert.ok(!panelUIFooter.hasAttribute("fxaprofileimage"), "no fxaprofileimage when signed out");
|
||||
|
||||
let promiseOpen = promiseTabOpen("about:accounts?entryPoint=menupanel");
|
||||
let promiseOpen = promiseTabOpen("about:accounts?entrypoint=menupanel");
|
||||
panelUIStatus.click();
|
||||
yield promiseOpen;
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче