Closed Bug 1070115 Opened 10 years ago Closed 9 years ago

In Sync preferences, the manage account link should only link to manage that account

Categories

(Firefox :: Sync, defect)

35 Branch
defect
Not set
normal
Points:
2

Tracking

()

VERIFIED FIXED
Firefox 40
Iteration:
40.2 - 27 Apr
Tracking Status
firefox40 --- verified

People

(Reporter: rfeeley, Assigned: markh)

References

Details

Attachments

(2 files)

Attached image manage.gif
Currently in Sync preferences, the Manage link goes to /settings on the web. The URL should contain a hash of an email address that will bring the user to the setting page for that specific account, so that they don't accidentally modify the settings of a different account they had authenticated on the web.
Hardware: x86 → All
Blocks: 1070208
No longer blocks: 1070208
See Also: → 1070208
We fixed this in the FxA web code. If you add uid=<fxa uid> to the query params of the settings link, we'll show the correct settings page if the user is currently authenticated on the Web. Otherwise, we'll prompt the user to log in.
Sounds like a simple but worthwhile fix the client can make.
Points: --- → 2
Flags: qe-verify+
Flags: firefox-backlog+
Gavin, has this made the priority backlog?
Flags: needinfo?(gavin.sharp)
No, but maybe Mark can write a patch very quickly.
Flags: needinfo?(gavin.sharp)
Would it work for the manage account link in Hello too or should I file a separate bug for that?
That's already filed as bug 1070208 (in the See Also field).
Adds a promiseAccountsManageURI to FxAccounts.jsm and has the sync pref's panel call that.
Assignee: nobody → mhammond
Status: NEW → ASSIGNED
Attachment #8596940 - Flags: review?(zack.carter)
Comment on attachment 8596940 [details] [diff] [review]
0001-Bug-1070115-pass-the-uid-of-the-current-FxA-user-to-.patch

Review of attachment 8596940 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good with comment addressed.

::: services/fxaccounts/FxAccounts.jsm
@@ +1231,5 @@
> +      if (!accountData) {
> +        return null;
> +      }
> +      let newQueryPortion = url.indexOf("?") == -1 ? "?" : "&";
> +      newQueryPortion += "uid=" + encodeURIComponent(accountData.uid);

We should also add an email query parameter for the fallback scenario: when there's no account with that uid in localStorage we show /signin with the provided email pre-filled.
Attachment #8596940 - Flags: review?(zack.carter) → review+
Iteration: --- → 40.2 - 27 Apr
https://hg.mozilla.org/mozilla-central/rev/d03a3e5aaf86
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
QA Contact: catalin.varga
I verified this bug using 
FF 40
Build Id: 20150427030207
OS: Win 7 x64, Mac Os X 10.9.5, Ubuntu 14.04 x64

When pressing the manage button from about:preferences#sync the settings page of the account is opened and the url format contains the email and uid eg: (https://accounts.firefox.com/settings?uid=41276d2ce9aa4b29aa394cb4ee44ceb9&email=cascavaca%40mailinator.com)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: