Closed Bug 1837639 Opened 2 years ago Closed 2 years ago

Signing out of Sync takes Firefox View back to mobile setup instead of showing a disconnected error

Categories

(Firefox :: Firefox View, defect, P3)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mkaply, Unassigned)

References

Details

(Whiteboard: [fidefe-firefox-view])

This is legacy sync (but will impact new sync).

If you login to sync and go to view, you'll see synced tabs.

If you then logout, and go back to view, you'll get the mobile setup.

You shouldn't. You should get a message about being disconnected. This is happening because after you signout, lazy.UIState.get().status here - https://searchfox.org/mozilla-central/source/browser/components/firefoxview/firefox-view-synced-tabs-error-handler.sys.mjs#80 returns "not_configured"

We should add an extra check for the preference - services.sync.lastversion.

If that pref is set, the user was logged into sync at some point.

As usual, this got a bit complicated. I fixed the error handler, but because the UI state is still stuck at 1, we don't show the error message.

We should be setting the UI state to 0 after we've logged in.

I'm going to punt on this for now since it's not going to be an issue with the new view.

This was a design decision from the original implementation, but I agree that a disconnected message would be better.

Severity: -- → S3
Priority: -- → P3

I'm not seeing this with the new Firefox View.... just a "Sign in to reconnect" message. It sounds like this about the old firefox view, so I'm going to close it. If I'm wrong and I'm missing a STR, please reopen.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.