Closed Bug 1802122 Opened 1 year ago Closed 1 year ago

Avoid sending Form History autocomplete preference values across content to main process boundaries

Categories

(Toolkit :: Form Autofill, task, P2)

task

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

In bug 1697392 we are looking to use FormHistory.getAutoCompleteResults directly from the search suggestion code.

When trying that out, I realised that we would need to pass a set of parameters that are obtained from preferences.

Digging a bit more, I realised that these parameters are never modified by the code - we load/cache them in the content process (assuming a separate content process), and then forward them across to the main process.

We can simplify this by having Prefs within FormHistory.jsm cache the preferences and then getAutoCompleteResults can use them directly.

These are currently loaded from prefs in the content process, and then passed to the main process
without modification. To simplify this, we can load and manage these directly in FormHistory.

This also allows FormHistory.getAutoCompleteResults() to be called directly, without having to
replicate all the preferences.

Severity: -- → N/A
Priority: -- → P2
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/24dd86b49420
Avoid sending Form History autocomplete preference values across the content to mainProcess boundaries. r=credential-management-reviewers,sgalich
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: