Skip to content

Commit 95a16e6

Browse files
authored
[UITour] Show FxA signin for Smart Window (#16998)
1 parent 05e8d86 commit 95a16e6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

media/js/base/uitour-lib.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@ if (typeof window.Mozilla === 'undefined') {
234234
});
235235
};
236236

237+
/**
238+
* Trigger the Firefox Accounts sign-in flow for the AI Window feature.
239+
* This will prompt the user to sign in and then open the AI Window
240+
* upon successful authentication.
241+
* @since 149
242+
*/
243+
Mozilla.UITour.showFirefoxAccountsForAIWindow = function () {
244+
_sendEvent('showFirefoxAccountsForAIWindow');
245+
};
246+
237247
Mozilla.UITour.resetFirefox = function () {
238248
_sendEvent('resetFirefox');
239249
};

0 commit comments

Comments
 (0)