Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Sync profile image updates across tabs/frames #2164

Closed
zaach opened this issue Feb 27, 2015 · 3 comments
Closed

Sync profile image updates across tabs/frames #2164

zaach opened this issue Feb 27, 2015 · 3 comments

Comments

@zaach
Copy link
Contributor

zaach commented Feb 27, 2015

When #2095 is done we'll have a notification mechanism for signalling profile changes across tabs and frames. We should use that to keep the UI in sync.

@ncalexan
Copy link
Member

Is this done? Ready for action? I'm trying to understand what the messaging will look like in clients if two tabs are open to accounts.firefox.com.

@zaach
Copy link
Contributor Author

zaach commented May 15, 2015

It's ready for action. How'd I imagine it'd work: when a page with an avatar loads, we attach a listener to notifications* that can fetch the latest profile data and update the view.

*notifications listens to events from other tabs: https://github.com/mozilla/fxa-content-server/blob/master/app/scripts/models/notifications.js#L47-L53

@shane-tomlinson
Copy link

This works now, closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants