Closed Bug 1647256 Opened 5 years ago Closed 5 years ago

Search cache isn't saving the built-in engine list, errors raised when upgrading from old version.

Categories

(Firefox :: Search, defect, P1)

defect
Points:
2

Tracking

()

RESOLVED FIXED
Firefox 79
Iteration:
79.2 - June 15 - June 28
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox77 --- unaffected
firefox78 --- unaffected
firefox79 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

This is fixing a couple of issues that I've picked up on whilst working on the latest code:

  • We're not writing cache.builtInEngineList properly since the move to a separate SearchCache object (bug 1632471).
  • When upgrading from older versions, we get lots of errors about failing to load engines because json._urls is undefined. These are because we don't recongnise them as app-provided engines as they're using the old isBuiltIn flag (bug 1631898)
Keywords: regression

The added test provides extra coverage for loading the legacy version of the cache file. It does not cover the exact errors as we don't have coverage to catch those at the moment.

Depends on D80454

Blocks: 1645619
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ca4dbd522647 Correctly save the current engine list to the cache when modern configuration is on. r=daleharvey https://hg.mozilla.org/integration/autoland/rev/06cbf21e903c When loading search engines, use the old _isBuiltin flag as well as the _isAppProvided one to prevent errors. r=daleharvey
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: