Closed
Bug 926709
Opened 12 years ago
Closed 12 years ago
Replace UI entry points for sync setup with opening about:accounts
Categories
(Firefox :: Sync, defect)
Firefox
Sync
Tracking
()
VERIFIED
FIXED
People
(Reporter: ttaubert, Assigned: ttaubert)
References
(Blocks 1 open bug)
Details
(Whiteboard: [qa+])
Attachments
(1 file, 1 obsolete file)
|
170.30 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #816869 -
Flags: review?(gavin.sharp)
Comment 2•12 years ago
|
||
Comment on attachment 816869 [details] [diff] [review]
Replace UI entry points for sync setup with opening about:accounts
I think we want switchToTabHavingURI-like behavior for about:accounts, similar to about:addons, so we'll have to take that into account.
Can you get rid of the openSetups now?
Attachment #816869 -
Flags: review?(gavin.sharp) → feedback+
| Assignee | ||
Comment 3•12 years ago
|
||
This patch removes most (all?) of the sync wizard. The only thing of the sync setup we're keeping is about:sync-progress because we can easily reuse that.
Attachment #816869 -
Attachment is obsolete: true
Attachment #817968 -
Flags: review?(gavin.sharp)
Comment 4•12 years ago
|
||
Comment on attachment 817968 [details] [diff] [review]
Replace UI entry points for sync setup with opening about:accounts, v2
>diff --git a/browser/base/content/browser-syncui.js b/browser/base/content/browser-syncui.js
>+ openAccountsPage: function () {
>+ window.switchToTabHavingURI("about:accounts", true);
>+ },
"window." is a bit unusual...
>- function() { gSyncUI.openQuotaDialog(); return true; } )
>+ function() { gSyncUI.openAccountsPage(); return true; } )
As mentioned IRL, we should get a bug on file to make sure the accounts page handles quota stuff, if we're linking to it for that.
>diff --git a/browser/components/preferences/in-content/sync.js b/browser/components/preferences/in-content/sync.js
(same comments apply to non-in-content versions, obviously)
>- needsUpdate: function () {
>- this.page = PAGE_NEEDS_UPDATE;
PAGE_NEEDS_UPDATE is now unused.
> updateWeavePrefs: function () {
> if (Weave.Status.service == Weave.CLIENT_NOT_CONFIGURED ||
> Weave.Svc.Prefs.get("firstSync", "") == "notReady") {
> this.page = PAGE_NO_ACCOUNT;
>- } else if (Weave.Status.login == Weave.LOGIN_FAILED_INVALID_PASSPHRASE ||
>- Weave.Status.login == Weave.LOGIN_FAILED_LOGIN_REJECTED) {
>- this.needsUpdate();
>- } else {
>+ } else if (Weave.Status.login != Weave.LOGIN_FAILED_INVALID_PASSPHRASE &&
>+ Weave.Status.login != Weave.LOGIN_FAILED_LOGIN_REJECTED) {
> this.page = PAGE_HAS_ACCOUNT;
> document.getElementById("accountName").value = Weave.Service.identity.account;
>- document.getElementById("syncComputerName").value = Weave.Service.clientsEngine.localName;
> document.getElementById("tosPP").hidden = this._usingCustomServer;
> }
This leaves the "INVALID_PASSPHRASE" and "LOGIN_REJECTED" cases unhandled, right? Seems like they should just show PAGE_NO_ACCOUNT for now.
>diff --git a/browser/components/preferences/in-content/sync.xul b/browser/components/preferences/in-content/sync.xul
> <vbox id="hasAccount">
>- <button type="menu"
>- label="&manageAccount.label;"
>- accesskey="&manageAccount.accesskey;">
We'll probably want a link to about:accounts in this pane somewhere?
>- <label value="&syncDeviceName.label;"
>- accesskey="&syncDeviceName.accesskey;"
>- control="syncComputerName"/>
>- <textbox id="syncComputerName"
>- onchange="gSyncUtils.changeName(this)"/>
Do we really want to remove this?
r=me for elm with those addressed.
Attachment #817968 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
| Assignee | ||
Comment 6•12 years ago
|
||
Oh, forgot we can set this to fixed as we'll not merge it to m-c for now.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•11 years ago
|
||
Cleaning up Resolved/Fixed bugs from December's first release.
Verified that we now have a working first-release of FxA to Desktop/Android Nightly.
Re-open as needed.
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Component: Firefox Sync: UI → Sync
Product: Cloud Services → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•