ContentSearchChild.jsm should cache information

NEW
Unassigned

Status

()

enhancement
4 months ago
3 months ago

People

(Reporter: Felipe, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [fxperf:p3])

ContentSearch.jsm is already nice enough to broadcast information to ContentSearchChild any time there are changes to the state (the state being the list of search engines and which is the default one).

However, ContentSearchChild doesn't do any effort to keep this information cached locally, and requests this information again every time a new about:newtab tab is open.

Given that this cached information is kept in the privileged content process, and that process is kept alive [1], this is even more incentive to keep the information cached in the child. It would avoid an expensive msg round-trip for every new tab open.

[1] https://searchfox.org/mozilla-central/rev/dc0adc07db3df9431a0876156f50c65d580010cb/modules/libpref/init/all.js#3379

Whiteboard: [fxperf] → [fxperf:p3]
You need to log in before you can comment on or make changes to this bug.