Closed Bug 1953580 Opened 8 months ago Closed 8 months ago

Ensure addonsSearchDetection getMatchPatterns API methods defer accessing Services.search to after application startup is past first paint

Categories

(WebExtensions :: General, task, P1)

task

Tracking

(firefox138 fixed)

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: rpl, Assigned: rpl)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Since Bug 1938155 landed in mozilla-central the addons-search-detection builtin addon is now being loaded along with the other system addons, for addons-search-detection specifically that is earlier during application startup then it used to be before Bug 1938155 (before that change the addons-search-detection builtin used to be manually installed from a BrowserGlue idle task).

The fact that addons-search-detection is now being installed earlier during application startup is very likely the root cause of the increased failure rate hit by browser_startup.js due to the SearchService.sys.mjs being loaded before the application startup got past the first paint phase (see Bug 1798750 comment 139).

This bugzilla issue is tracking applying changes on the addons-search-detection builtin addon side to ensure that addonsSearchDetection.getMatchPattern API method will defer accessing Services.search to after application startup got past the first paint, as also suggested in Bug 1798750 comment 137.

Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/5ffc9c8ce107 Ensure addonsSearchDetection getMatchPatterns awaits for first paint before accessing Services.search. r=Gijs,willdurand
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: