Closed Bug 1357026 Opened 8 years ago Closed 8 years ago

Should let user able to sign in to a Firefox account in the Firefox Sync tour

Categories

(Firefox :: General, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 56
Tracking Status
firefox56 --- fixed

People

(Reporter: Fischer, Assigned: rexboy)

References

Details

(Whiteboard: [photon-onboarding] )

Attachments

(1 file)

Should let user able to sing-in an Firefox account in the Firefox Sync tour
Whiteboard: [photon-onboarding]
Priority: -- → P2
Target Milestone: --- → Firefox 57
Priority: P2 → P1
Target Milestone: Firefox 57 → Firefox 56
Flags: qe-verify+
QA Contact: jwilliams
Assignee: nobody → rexboy
Status: NEW → ASSIGNED
As discussed yesterday UX come up with a new design contain the email input, and populate the real sign-up form with it. We can fill the email section in about:accounts without any server-side change, ex: about:accounts?action=signup&entrypoint=preferences&email=xxx@ddd.com UITour seems support open about:accounts as well. But can we do those in remote=true window? @rex could you help check those feasibility? We need to find out if we can do this way so UX can provide the spec ASAP
Flags: needinfo?(rexboy)
See bug 1357023 comment 14. Feasible with a few line changes on UITour-lib.js and UITour.jsm but we need to check with reviewers.
Flags: needinfo?(rexboy)
Attachment #8878073 - Flags: review?(MattN+bmo)
See https://bugzilla.mozilla.org/attachment.cgi?id=8877008 for the latest sync tour's spec. (from bug 1354707 comment 25) After user clicks next, we use UITour to open about:accounts in another window with email address pre-filled.
Attachment #8878073 - Flags: review?(MattN+bmo) → review?(gijskruitbosch+bugs)
Matt seems to be very busy at this time. Gijs would you help on reviewing this patch? This patch adds a parameter in showFirefoxAccounts to enable us pre-fill email when opening about:accounts page. And it'll be used at onboarding sync tour's page later.
Comment on attachment 8878073 [details] Bug 1357026 - Open about:accounts with pre-filled email account from UITour. https://reviewboard.mozilla.org/r/149490/#review154110
Attachment #8878073 - Flags: review+
Comment on attachment 8878073 [details] Bug 1357026 - Open about:accounts with pre-filled email account from UITour. https://reviewboard.mozilla.org/r/149490/#review154180 ::: browser/components/uitour/UITour-lib.js:580 (Diff revision 1) > + * Mozilla.UITour.showFirefoxAccounts(null, "foo@bar.com"); > */ > - Mozilla.UITour.showFirefoxAccounts = function(extraURLCampaignParams) { > + Mozilla.UITour.showFirefoxAccounts = function(extraURLCampaignParams, email) { > _sendEvent("showFirefoxAccounts", { > extraURLCampaignParams: JSON.stringify(extraURLCampaignParams), > + email: email Nit: don't need to duplicate this. ::: browser/components/uitour/test/browser_UITour_sync.js:68 (Diff revision 1) > }); > > +add_UITour_task(async function test_firefoxAccountsValidParams() { > + await gContentAPI.showFirefoxAccounts(null, "foo@bar.com"); > + await BrowserTestUtils.browserLoaded(gTestTab.linkedBrowser, false, > + "about:accounts?action=signup&entrypoint=uitour&email=foo%40bar.com"); It would be nicer if all of these didn't depend on the order in which these params were added, but given that this is a pre-existing problem, we don't need to fix this here... Also, these tests don't actually check anything directly, only by implication - failure would present as a timeout, which is unfortunate. It would be helpful if here and elsewhere in this file, we at least added some info() statements to indicate what we are waiting for, so that logs will show where the test stalled.
Attachment #8878073 - Flags: review?(gijskruitbosch+bugs) → review+
Comment on attachment 8878073 [details] Bug 1357026 - Open about:accounts with pre-filled email account from UITour. https://reviewboard.mozilla.org/r/149490/#review154180 > It would be nicer if all of these didn't depend on the order in which these params were added, but given that this is a pre-existing problem, we don't need to fix this here... > > Also, these tests don't actually check anything directly, only by implication - failure would present as a timeout, which is unfortunate. It would be helpful if here and elsewhere in this file, we at least added some info() statements to indicate what we are waiting for, so that logs will show where the test stalled. Yeah, I’ve thought about allowing {email: foo@bar.com} in the first parameter, but seems in that way it need to couple the checking logic within promotion code’s one. I just added some info() for tests waiting for browserLoaded(). Thanks for the suggestion!
Though I did like the 'singing' variation, let's update the summary so we can find it later. ;-)
Summary: Should let user able to sing-in an Firefox account in the Firefox Sync tour → Should let user able to sign in to a Firefox account in the Firefox Sync tour
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/ec461d56ce3a Open about:accounts with pre-filled email account from UITour. r=Gijs,MattN
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
For verifying, since this patch contains no user interface, I guess we can test it only until bug 1357023 lands.
This issue has been verified on Win 10 x64.
Status: RESOLVED → VERIFIED
I've managed to reproduce this bug on Nightly 55.0a1 (2017-04-17) (64-bit) from Linux x64! This issue is now verified as fixed on Latest Firefox Nightly 56.0a1 (2017-07-06) (64-bit) Build ID: 20170706130309 User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0 OS: Linux 4.8.0-58-generic
QA Whiteboard: [bugday-20170705]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: