Add a JS RemoteSettings client that fetches filter list attachments from the "content-classifier-lists" collection and pushes them to the C++ ContentClassifierService via new XPCOM interfaces. Lists are selected for blocking or annotation via comma-separated list_names prefs. The RS client is only initialized when the feature is enabled and list names are configured, ensuring no downloads occur when the feature is disabled. Attachments are cached with fallback to cache and dump. Differential Revision: https://phabricator.services.mozilla.com/D291513
17 lines
685 B
Python
17 lines
685 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': '{C7DDDBF2-8BC4-41A1-AC90-5144BEC5ABDF}',
|
|
'contract_ids': ['@mozilla.org/content-classifier-rs-client;1'],
|
|
'esModule': 'resource://gre/modules/ContentClassifierRemoteSettingsClient.sys.mjs',
|
|
'constructor': 'ContentClassifierRemoteSettingsClient',
|
|
'singleton': True,
|
|
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
|
|
},
|
|
]
|