Closed Bug 1807036 Opened 3 years ago Closed 3 years ago

Refactor the search engine verification code to make exceptions clearer

Categories

(Firefox :: Search, task, P3)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: standard8, Assigned: mcheang)

References

Details

(Whiteboard: [snt-scrubbed][search-tech-debt])

Attachments

(1 file)

When an engine is set as default, we additionally record a hash to verify that it has been saved correctly and not modified.

In bug 1805883 we had to fix an issue where we missed an exception to the verification code which was due to it being handled within the body of the search service, rather than where we handle the getting/setting the verifications in SearchSettings.

I think we should consider moving the isAppProvided check into the verification function, and additionally making it so that migrateEngineIds can also share the functionality in some manner (e.g. via an additional function).

We might also want to consider how the documentation works in the file, e.g. if we need to call this out in the setter docs as well.

Assignee: nobody → mcheang
Status: NEW → ASSIGNED
Attachment #9337272 - Attachment description: Bug 1807036 - move isAppProvided check for hash verification out of search service and into search settings. r=standard8 → Bug 1807036 - move isAppProvided check for hash verification out of search service and into search settings. r=standard8!
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/17f6906b8e55 move isAppProvided check for hash verification out of search service and into search settings. r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: