Open Bug 1724887 Opened 5 years ago Updated 4 years ago

The "Choose a theme" page is displayed twice when navigating back through all the onboarding slides

Categories

(Firefox :: Messaging System, defect, P2)

Desktop
All
defect

Tracking

()

Tracking Status
firefox91 --- unaffected
firefox92 --- affected
firefox93 --- affected

People

(Reporter: cmuresan, Assigned: pdahiya)

References

Details

Attachments

(1 file, 1 external file)

[Affected versions]:

  • Firefox Nightly 93.0a1, BuildID 20210809213353

[Affected Platforms]:

  • Windows 10, v1903 and up
  • macOS 10.11 and up

[Prerequisites]:

  • Have Firefox installed on the machine.
  • Have Firefox NOT set as default and not pinned to Dock or Taskbar.

[Steps to reproduce]:

  1. Start the Firefox application from prerequisites using a clean new profile.
  2. Pin Firefox to Taskbar or Dock.
  3. Skip the remaining onboarding using Not now.
  4. Click the Browser's Back button and observe the page.
  5. Click the Browser's Back button again and observe the page.

[Expected results]:

  • Step 4: The Choose a theme slide is displayed
  • Step 5: The "Import" page is displayed.

[Actual results]:

  • Step 4 and Step 5: The Choose a theme slide is displayed each time.

[Notes]:

  • The issue is also reproducible if you set Firefox as default instead of Pinning to Taskbar or Dock.
  • The issue is also reproducible if you both Pin Firefox and Set as default.
  • Attached a screen recording of the issue.

Debugged and issue seems to be 'state' stays saved inside windows.history for the index referring last screen causing back and forward navigation to have an extra entry.

https://searchfox.org/mozilla-central/source/browser/components/newtab/content-src/aboutwelcome/components/MultiStageAboutWelcome.jsx#31

To fix we should remove state from windows.history when on-boarding flow screen length changes due to pinning or set to default.

Assignee: nobody → pdahiya
Iteration: --- → 93.1 - Aug 9 - Aug 22
Priority: -- → P1

This issue is an edge case that occurs only we show four screen onboarding flow to user
a) that doesn't have Firefox pinned and doesn't have Firefox as default
b) set Firefox as default or pin or both ( causing screen length to change to 3 screens)
c) hits back button twice from about:home

Only for subset of users that meet above edge case conditions, attached patch fix takes user to first welcome screen when user navigates back from about:home.

Iteration: 93.1 - Aug 9 - Aug 22 → 93.2 - Aug 23 - Sep 5
Iteration: 93.2 - Aug 23 - Sep 5 → 94.1 - Sep 6 - Sept 19

What should the behavior be when the number of screens change and the user tries going back in history? The original bug resulted in going to the last screen showing nothing and fixed by showing the new last screen (themes) instead, but this results in a double themes screen when going back again.

screen 1: pin
screen 2: default
screen 3: import
screen 4: theme

The current proposed fix is to show the first screen instead when going back, but then going back another page would then jump to the theme screen again.

Flags: needinfo?(amedinac)
Iteration: 94.1 - Sep 6 - Sept 19 → 94.2 - Sep 20 - Oct 3
Severity: -- → S3
Iteration: 94.2 - Sep 20 - Oct 3 → ---
Priority: P1 → P2

Redirect a needinfo that is pending on an inactive user to the triage owner.
:tspurway, since the bug has high priority, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(amedinac) → needinfo?(tspurway)
Flags: needinfo?(tspurway)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: