Closed
Bug 1020156
Opened 10 years ago
Closed 10 years ago
Need a way to have about:accounts open with a default email address.
Categories
(Firefox :: Sync, defect)
Firefox
Sync
Tracking
()
People
(Reporter: markh, Assigned: adw)
References
Details
(Whiteboard: [diamond])
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
adw
:
review+
|
Details | Diff | Splinter Review |
For the sync migration, UX calls for us to open about:accounts with the email address set to a specific value. ie, we will find the email address specified in the current legacy-sync setup, then open about:accounts such that it defaults to creating an account with this address. The user will still be able to change the value - it's just a suggestion.
cc zaach as I suspect this will require a change to about:accounts *and* to the back-end.
Flags: firefox-backlog+
Comment 1•10 years ago
|
||
Adding myself to cc list, since I suspect that jbonacci and I will be splitting the testing duty for this feature.
Comment 2•10 years ago
|
||
Flagging as diamond. Zaach, feel like mentoring this if somebody wants to pick it up?
Flags: needinfo?(zack.carter)
Whiteboard: p=3 [qa+] → p=3 [qa+][diamond]
Comment 3•10 years ago
|
||
I've opened a content-server issue here: https://github.com/mozilla/fxa-content-server/issues/1258
I assume this will work similar to force auth, where the browser appends an "email=" query parameter to the URL.
Flags: needinfo?(zack.carter)
Updated•10 years ago
|
Assignee: nobody → stomlinson
Comment 4•10 years ago
|
||
I am taking the content server portion of this.
Comment 5•10 years ago
|
||
The server portion of this is ready. You can open the sign up page with an email query parameter, i.e. `/signup?email=<email-to-prefill>`.
I assume we'd use this for all legacy-sync users who would visit about:accounts. Are there more UX details for someone interested in writing the about:accounts patch?
Comment 6•10 years ago
|
||
Thanks Zach/Shane. The client side of this patch currently depends on other bugs (likely bug 1019985), but once we tackle those this should be more straightforward.
Assignee: stomlinson → nobody
Updated•10 years ago
|
Points: --- → 3
Flags: qe-verify+
Whiteboard: p=3 [qa+][diamond] → [diamond]
Reporter | ||
Updated•10 years ago
|
No longer blocks: migratesync
Updated•10 years ago
|
Assignee: nobody → adw
Status: NEW → ASSIGNED
Iteration: --- → 36.2
Assignee | ||
Comment 7•10 years ago
|
||
This cleans up URL param handling and in the process fixes this bug, if I understand it right. All URL params except for "action" from the about: URI are forwarded on to the remote page, including "email". So you can open about:account?email=foo@foo.com and it'll fill in the email address.
I don't know why wrapper.init try-caught constructing the URL and setting the iframe src. Bug 913199 seems to be where this was introduced, but I didn't see a reason. I wouldn't expect that to throw, so I removed it.
If this looks OK, I'll move on to tests next.
Attachment #8514581 -
Flags: feedback?(mhammond)
Reporter | ||
Comment 8•10 years ago
|
||
Comment on attachment 8514581 [details] [diff] [review]
Forward URL params from about: URI to remote URL
Review of attachment 8514581 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM
Attachment #8514581 -
Flags: feedback?(mhammond) → feedback+
Assignee | ||
Comment 9•10 years ago
|
||
This is the same as the previous but has two new tests. They seem kind of redundant since the existing tests hit these paths... And an end-to-end test that makes sure the email param is copied to the text field in the page would be nice, but I don't think that's possible. Or should our automated tests use the test servers from bug 1014411?
Attachment #8514581 -
Attachment is obsolete: true
Attachment #8515291 -
Flags: review?(mhammond)
Reporter | ||
Comment 10•10 years ago
|
||
Comment on attachment 8515291 [details] [diff] [review]
Forward URL params from about: URI to remote URL + tests
Review of attachment 8515291 [details] [diff] [review]:
-----------------------------------------------------------------
While end-to-end tests would be ideal, I think the test coverage is OK as it stands.
::: browser/base/content/aboutaccounts/aboutaccounts.js
@@ +334,3 @@
> });
> + break;
> + default:
I think this switch statement is going to cause you merge issues due to bug 1079835, but I'll let you use your judgement how to resolve that.
Attachment #8515291 -
Flags: review?(mhammond) → review+
Assignee | ||
Comment 11•10 years ago
|
||
Indeed, here's an unbitrotted patch that still uses the switch statement and accommodates bug 1079835. Carrying forward the r+.
Attachment #8515291 -
Attachment is obsolete: true
Attachment #8517110 -
Flags: review+
Assignee | ||
Comment 12•10 years ago
|
||
Comment 13•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 36
Comment 14•10 years ago
|
||
Setting for Tracy. We'll pick it up if we have the time.
QA Contact: twalker
Comment 15•10 years ago
|
||
I see this bug has automated tests, is there need for manual testing? If so can you please offer some guidance? Thanks
Updated•10 years ago
|
Flags: needinfo?(adw)
Assignee | ||
Comment 16•10 years ago
|
||
Thanks Bogdan, I think this is well covered by the automated test and my own and others' manual testing in the past.
Flags: qe-verify-
Flags: qe-verify+
Flags: needinfo?(adw)
You need to log in
before you can comment on or make changes to this bug.
Description
•