Fix Bug 1497261 - Revert parameter rename
This commit is contained in:
Родитель
a872f161c3
Коммит
40b654aca4
|
@ -892,7 +892,7 @@ class _ASRouter {
|
|||
UITour.showMenu(target.browser.ownerGlobal, action.data.args);
|
||||
break;
|
||||
case ra.INSTALL_ADDON_FROM_URL:
|
||||
await MessageLoaderUtils.installAddonFromURL(target.browser, action.data.args);
|
||||
await MessageLoaderUtils.installAddonFromURL(target.browser, action.data.url);
|
||||
break;
|
||||
case ra.SHOW_FIREFOX_ACCOUNTS:
|
||||
const url = await FxAccounts.config.promiseSignUpURI("snippets");
|
||||
|
|
|
@ -793,7 +793,7 @@ describe("ASRouter", () => {
|
|||
describe("#onMessage: INSTALL_ADDON_FROM_URL", () => {
|
||||
it("should call installAddonFromURL with correct arguments", async () => {
|
||||
sandbox.stub(MessageLoaderUtils, "installAddonFromURL").resolves(null);
|
||||
const msg = fakeExecuteUserAction({type: "INSTALL_ADDON_FROM_URL", data: {args: "foo.com"}});
|
||||
const msg = fakeExecuteUserAction({type: "INSTALL_ADDON_FROM_URL", data: {url: "foo.com"}});
|
||||
|
||||
await Router.onMessage(msg);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче