Closed Bug 926709 Opened 11 years ago Closed 11 years ago

Replace UI entry points for sync setup with opening about:accounts

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: ttaubert, Assigned: ttaubert)

References

(Blocks 1 open bug)

Details

(Whiteboard: [qa+])

Attachments

(1 file, 1 obsolete file)

      No description provided.
Blocks: 905997
Whiteboard: [qa+]
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+
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)
Blocks: 927527
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+
Oh, forgot we can set this to fixed as we'll not merge it to m-c for now.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Depends on: 951857
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
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.

Attachment

General

Created:
Updated:
Size: