Closed Bug 1807127 Opened 3 years ago Closed 2 years ago

Changing the device's name appears to not work even though it apparently does

Categories

(Firefox for Android :: Accounts and Sync, defect, P2)

All
Android
defect

Tracking

()

VERIFIED FIXED
119 Branch
Tracking Status
firefox111 --- wontfix
firefox112 --- wontfix
firefox113 --- wontfix
firefox115 --- wontfix
firefox116 --- wontfix
firefox117 --- wontfix
firefox118 --- verified
firefox119 --- verified

People

(Reporter: csadilek, Assigned: vdreghici)

References

Details

(Whiteboard: [fxdroid] [experience])

Attachments

(5 files)

From github: https://github.com/mozilla-mobile/fenix/issues/17100.

Steps to reproduce

  1. Go to Settings and sign in with a valid account.
  2. Tap on Device name and rename your device.
  3. Tap on OK, then check if the new name is saved.

Expected behavior

The edited name of the device is saved without issues.

Actual behavior

The edited name isn't saved.
If repeating steps 2 & 3, the user can see the edited name in the edit field, but when it is saved, the name doesn't change.

Device information

  • Android device: all
  • Fenix version: Beta 85.0.0-beta.1
  • Not reproducible on 12/17 Nightly, nor on RC 84.1.1

<img src="https://user-images.githubusercontent.com/40694158/102497589-7d2d1f00-4081-11eb-92b7-fb8af2af5385.gif" width="300" height="550" />

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)
Summary: [Bug] Cannot change the device's name → Cannot change the device's name

I just tried this and the device name does appear to be changed in FxA, it's just not reflected as being changed on the menu - it does change at some point though, just not immediately. If you go back into the menu to edit the name again, it continues to show the old name, not the new name. So it really looks like it didn't work, but actually does.

Summary: Cannot change the device's name → Changing the device's name appears to not work even though it apparently does.
Attached video device name.mp4

This issue still reproduces on all Firefox versions: Nightly 113.0a1 from 3/14, Beta 112.0b1, and RC 111.0.
Tested with Sony Xperia Z5 Premium (Android 7.1.1).

Flags: needinfo?(cpeterson)
Priority: -- → P2
Whiteboard: [fxdroid] [experience]
Assignee: nobody → Vlad.DreghiciPopa
Status: NEW → ASSIGNED

I have investigated this ticket for a while. I have also attached a video in which the problem is shown both on android device and on web browser, and you can see how in the first attempts the name changes on Android UI then reverts, while on the web browser the new name is actually saved, but in the last one, the name is saved correctly in Android. It looks like the issue here is that after the listener here is notified that the name is changed, in onChangeDeviceName, syncDeviceName is called, which launches this coroutine. While this runs, the name is already updated in UI and pref, but after it is finished, setDeviceName is called which fetches all devices in order to refresh them, sometimes fetching the old name of the current device, leading to it reverting in the UI. The issue seems to be fixed by moving the action dispatch from onChangeDeviceName to the inside of the coroutine making the name actually change after a small delay. You can check this in the PR attached. If this was a solution to consider, we will need feedback from UX on how to notice the user of the "loading" while the name is being changed.

Attached video Untitled(3).mp4

Tagging this as needs-ux, since there is a slight delay after pressing ok and the name actually showing up in the UI. I came up with a solution, but I want to double-check and make sure this would be ok. You can check the video here and the solution for the delay that I reached to here.

Whiteboard: [fxdroid] [experience] → [fxdroid] [experience][needs-ux]
Summary: Changing the device's name appears to not work even though it apparently does. → Changing the device's name appears to not work even though it apparently does

That solution looks pretty elegant to me, Vlad. I'm OK making an executive decision on behalf of the UX team to approve this visual change.

Whiteboard: [fxdroid] [experience][needs-ux] → [fxdroid] [experience]
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Managed to reproduce on the latest Beta build (118.0b3) with a Huawei P20 (android 10) device.
Verified as fixed on the latest Nightly build (119.0a1 from 2023-09-01).
The changed device name is saved successfully.
Device used: Google Pixel 7 (Android 14)
Marking the ticket as verified for 119.

Flags: qe-verify+

The patch landed in nightly and beta is affected.
:vdreghici, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox118 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(Vlad.DreghiciPopa)

Comment on attachment 9352852 [details] [review]
[mozilla-mobile/firefox-android] Bug 1807127 - Update Sync Device name after refreshing fxa devices (backport #1576) (#3617)

Beta/Release Uplift Approval Request

  • User impact if declined: Changing the name on the sync screen would cause confusion as it would appear like it doesn't work, even thought it does.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Same steps as in initial comment
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The patch just updates the name seen in the ui after the user changes it.
  • String changes made/needed: none
  • Is Android affected?: Yes
Flags: needinfo?(Vlad.DreghiciPopa)
Attachment #9352852 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Comment on attachment 9352852 [details] [review] [mozilla-mobile/firefox-android] Bug 1807127 - Update Sync Device name after refreshing fxa devices (backport #1576) (#3617) Approved for 118.0b9 (last beta) thanks.
Attachment #9352852 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Authored by https://github.com/DreVla
https://github.com/mozilla-mobile/firefox-android/commit/cad72efab1543bd54b8cb96dfb10fd6967928c54
[releases_v118] Bug 1807127 - Update Sync Device name after refreshing fxa devices

Authored by https://github.com/pascalchevrel
https://github.com/mozilla-mobile/firefox-android/commit/5356a514072d141e45c7f249383557ed3f0cf1f8
[releases_v118] Merge pull request #3617 from mozilla-mobile/mergify/bp/releases_v118/pr-1576

Verified as fixed on the latest Beta build (118.0b9).
The changed device name is saved successfully.
Device used: Google Pixel 7 (Android 14)
Marking the ticket as verified for 118 as well.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
See Also: → 1968691
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: