Closed Bug 1805883 Opened 3 years ago Closed 3 years ago

Default search engine may be reset when upgrading to 108 if profile was previously copied

Categories

(Firefox :: Search, defect, P1)

defect

Tracking

()

VERIFIED FIXED
110 Branch
Tracking Status
relnote-firefox --- 108+
firefox-esr102 --- unaffected
firefox108 + verified
firefox109 + verified
firefox110 --- verified

People

(Reporter: standard8, Assigned: standard8)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

STR

  1. Use a Firefox version prior to 108
  2. Set the default engine to an application provided one that is not the default engine.
  3. Shutdown Firefox.
  4. Create a new profile, and copy the search.json.mozlz4 file into that profile.
  • Note: SUMO suggests to copy the profile when moving to a new computer.
  • Users may also simply copy the file to copy their search settings.
  1. Startup Firefox with the new profile.
  2. Upgrade Firefox to version 108.

Expected Results

=> The default search engine set in step 2 is retained.

Actual Results

=> The default search engine is reset to the application default (typically Google).

The issue here is that we have some protection in place for against changing the default engine from outside of Firefox. When loading Firefox, if an application provided engine is default we allow the protection to be ignored.

However, we missed accounting for that case in the migration added in bug 1786324.

Set release status flags based on info from the regressing bug 1786324

[Tracking Requested - why for this release]: Affects users upgrading to 108.

Flags: qe-verify+
Flags: in-qa-testsuite?(adrian.florinescu)

The issue is verified fixed using the provided try-build and following the steps in the description. After doing to the upgrade to the try-build, the engine no longer changes (still the same engine used before the upgrade). This was verified on both Windows 10 and Ubuntu 22 using the pave-over method (copying the trybuild over the original install files).

Comment on attachment 9308496 [details]
Bug 1805883 - Default search engine may be reset when upgrading to 108 if profile was previously copied. r?#search-reviewers!

Beta/Release Uplift Approval Request

  • User impact if declined: Users may have their default search engine reset to the application default when upgrading Firefox. This would only occur if they were using a profile that was previously copied.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: See comment 0
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Added an additional simple check to cover this case based on existing code. Code has automated tests.
  • String changes made/needed: None
  • Is Android affected?: No
Attachment #9308496 - Flags: approval-mozilla-release?
Attachment #9308496 - Flags: approval-mozilla-beta?
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/488d9d67cf0c Default search engine may be reset when upgrading to 108 if profile was previously copied. r=search-reviewers,daleharvey,mcheang

Comment on attachment 9308496 [details]
Bug 1805883 - Default search engine may be reset when upgrading to 108 if profile was previously copied. r?#search-reviewers!

Approved for 109.0b3 and 108.0.1.

Attachment #9308496 - Flags: approval-mozilla-release?
Attachment #9308496 - Flags: approval-mozilla-release+
Attachment #9308496 - Flags: approval-mozilla-beta?
Attachment #9308496 - Flags: approval-mozilla-beta+
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch

The issue is verified fixed using Fx110.0a1, Fx108.0.1 and Fx109.0b3 on Windows 10, Ubuntu 22.04 and macOS. The default engine is no longer reset after the upgrade is performed if the previous profile was copied.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

Regression tests added in the addressbar suite.

Flags: in-qa-testsuite?(adrian.florinescu) → in-qa-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: