fune/toolkit/components/telemetry/components.conf
Michael Comella c46226129e Bug 1632682 - init scripts after ScriptCacheChild::Init in content process. r=geckoview-reviewers,agi,mccr8
Root cause: some scripts in the content process were loaded before the script
cache was available there so these scripts were never written to the cache and
thus were never loaded from cache on subsequent runs, affecting performance.
These scripts listened for the app-startup topic.

This patch introduces a new topic to indicate when the script cache is init so
scripts previously listening to app-startup can listen to the new topic instead.

Differential Revision: https://phabricator.services.mozilla.com/D138501
2022-02-24 01:52:34 +00:00

23 lines
1,019 B
Python

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Classes = [
{
'cid': '{117b219f-92fe-4bd2-a21b-95a342a9d474}',
'contract_ids': ['@mozilla.org/base/telemetry-startup;1'],
'jsm': 'resource://gre/modules/TelemetryStartup.jsm',
'constructor': 'TelemetryStartup',
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
},
{
'cid': '{efc1415c-5708-41cc-8226-82bf1d3bee16}',
'contract_ids': ['@mozilla.org/base/telemetry-controller-content;1'],
'jsm': 'resource://gre/modules/TelemetryControllerContent.jsm',
'processes': ProcessSelector.CONTENT_PROCESS_ONLY,
'constructor': 'getTelemetryController',
'categories': {'content-process-ready-for-script': 'TelemetryControllerContent'},
},
]