Closed Bug 1786900 Opened 3 years ago Closed 3 years ago

Hitting secondary CTA on colorways screen after navigating back resets to system theme

Categories

(Firefox :: Messaging System, defect, P3)

defect

Tracking

()

VERIFIED FIXED
106 Branch
Iteration:
106.1 - Aug 22 - Sept 2
Tracking Status
firefox106 --- verified

People

(Reporter: pdahiya, Assigned: jprickett)

References

(Blocks 1 open bug)

Details

Scope of this bug is to fix an edge case in new user onboarding that resets user previously applied colorway in the same session.

STR:

  1. Open about:welcome
  2. Navigate to colorway screen, select a colorway theme and hit Set colorway
  3. Colorway should be applied. Navigate back to colorway screen by hitting back button
  4. Click secondary CTA

Expected Result:
Previous selected colorway should stay applied

Actual Result:
Theme gets reset back to system theme

The issue happens because initialTheme state doesn't get reset with the active theme in the same session until reload of about:welcome

https://searchfox.org/mozilla-central/rev/d01591796d5faccf762adb09a311d8ee12f7ca7f/browser/components/newtab/content-src/aboutwelcome/components/MultiStageAboutWelcome.jsx#322

This edge case doesn't happen in current omnboarding because Theme screen is the last screen and hit of back reloads about:welcome

Assignee: nobody → halemu

NI @Ania to help triage this edge case Thanks

Flags: needinfo?(asafko)

This looks like it'll be fixed as part of bug 1783750.

Assignee: halemu → jprickett
Depends on: 1783750
Flags: needinfo?(asafko)
Priority: -- → P3

I'd treat it as a nice-to-fix, but a fairly low-priority one. I don't think it's critical for 106, but would be nice to tackle long-term for the sake of keeping up predictable behavior after returning to a previous screen via a back button.

Status: NEW → RESOLVED
Iteration: --- → 106.1 - Aug 22 - Sept 2
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch

I have verified that this issue is no longer reproducible with the latest Firefox Nightly (106.0a1 Build ID - 20220830092750) installed on Windows 10 x64, macOS 11.6.5, and Linux Mint 20.2 x64. Now, I can confirm that the previously set theme remains active after hitting the "Skip this step" button.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.