Closed Bug 1928082 Opened 4 months ago Closed 4 months ago

Default theme keeps getting re-enabled since Firefox 132

Categories

(Toolkit :: Add-ons Manager, defect, P1)

defect

Tracking

()

VERIFIED FIXED
134 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox132 + verified
firefox133 + verified
firefox134 + verified

People

(Reporter: robwu, Assigned: robwu)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [addons-jira])

Attachments

(3 files)

A user reported that Firefox Color does not work, at https://old.reddit.com/r/firefox/comments/1geu6lg/firefox_1320_see_all_new_features_updates/luilmcx/ :

This new update broke Firefox Color somehow. My theme just isn't working at all, and I have to load it every time I open Firefox.

I can confirm some form of brokenness when I launch a new profile:

  1. Start Firefox with a new profile.
  2. Visit https://addons.mozilla.org/en-US/firefox/addon/firefox-color/ and install it.
  3. Go to a preset theme and select any theme.
  4. Quit Firefox and start it again.

Expected:

  • The theme should still be applied.

Actual:

  • The theme sometimes flickers at startup, and sometimes disappears altogether.

Additional information:

The version was bumped from 1.3 to 1.4 in bug 1918317, and later to 1.4.1 in bug 1915862.

I'm moving this to Toolkit::Add-ons Manager because the relevant (inconsistency) in version is in the XPIProvider.sys.mjs file.

Besides fixing the version, it may also be worth investigating whether we should update the implementation of ext-theme.js to avoid replacing the current theme when the default theme is updated. Otherwise the observation of this bug could still continue to happen at the first startup when a static theme is updated (whether built-in or third-party). This is the result of the implementation that immediately activates a static theme when it is installed.

Component: Themes → Add-ons Manager
Whiteboard: [addons-jira]
Assignee: nobody → rob
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P1

The test coverage in bug 1922526 was not enough to prevent this regression from happening, so I added one that really verifies that the built-in theme version matches the call to AddonManager.maybeInstallBuiltinAddon.

See Also: → 1922526

(In reply to Rob Wu [:robwu] from comment #3)

The test coverage in bug 1922526 was not enough to prevent this regression from happening, so I added one that really verifies that the built-in theme version matches the call to AddonManager.maybeInstallBuiltinAddon.

Definitely, The test from Bug 1922526 had nothing to do with this regression and clearly not expected to catch this one, we need a separate regression test for this issue (Bug 1922526 was specifically about BuiltInThemes calls to maybeInstallBuiltinAddon, while the issue here is about a call originated from inside the XPIProvider.startup).

Duplicate of this bug: 1927871
No longer duplicate of this bug: 1927871

The bug is marked as tracked for firefox132 (release), tracked for firefox133 (beta) and tracked for firefox134 (nightly). However, the bug still has low severity.

:mixedpuppy, could you please increase the severity for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(mixedpuppy)
Severity: S3 → S2
Flags: needinfo?(mixedpuppy)
See Also: → 1928450
Duplicate of this bug: 1928450
Attachment #9434651 - Flags: approval-mozilla-beta?
Attachment #9434652 - Flags: approval-mozilla-release?
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/96a295779152 Specify correct version of default-theme r=rpl,willdurand

beta Uplift Approval Request

  • User impact if declined: User's preferred theme is often lost at browser startup.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: https://bugzilla.mozilla.org/show_bug.cgi?id=1928082#c0
  • Risk associated with taking this patch: Low
  • Explanation of risk level: One line change to make version number consisten + new unit tests
  • String changes made/needed: None
  • Is Android affected?: no

release Uplift Approval Request

  • User impact if declined: User's preferred theme is often lost at browser startup.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: https://bugzilla.mozilla.org/show_bug.cgi?id=1928082#c0
  • Risk associated with taking this patch: Low
  • Explanation of risk level: One line change to make version number consisten + new unit tests
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9434651 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
See Also: 1928450
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Attachment #9434652 - Flags: approval-mozilla-release? → approval-mozilla-release+
Duplicate of this bug: 1928708
Duplicate of this bug: 1928756
No longer duplicate of this bug: 1928708
Duplicate of this bug: 1928708
Duplicate of this bug: 1928882
Duplicate of this bug: 1928889
See Also: → 1928902

(In reply to Rob Wu [:robwu] from comment #1)

Besides fixing the version, it may also be worth investigating whether we should update the implementation of ext-theme.js to avoid replacing the current theme when the default theme is updated. Otherwise the observation of this bug could still continue to happen at the first startup when a static theme is updated (whether built-in or third-party). This is the result of the implementation that immediately activates a static theme when it is installed.

I have filed bug 1928902 to track this suggestion.

Verified as Fixed. Tested on the latest Nightly (134.0a1/20241103214544), Beta (133.0b3/20241101115900) and Release (132.0.1/20241101140617 from https://treeherder.mozilla.org/jobs?repo=mozilla-release&revision=05ae29c63b956658418a4fea78374b00121474ca) under Windows 10 and Ubuntu 22.04 LTS.

The themes from Firefox Color remain applied after closing and restarting the browser.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: