Files
tubestation/toolkit/components/contentanalysis
David P 35aec22d9a Bug 1952508: Part 5 - Keep MockRegistrar from creating a second instance of the service r=jmaher,dlp-reviewers,gstoll
The thread pool that CA runs on must be shut down for xpcom-shutdown-threads.
The MockRegistrar was illegally creating additional instances of
ContentAnalysis, in an attempt to fill in the (unneeded) _genuine property.
This adds a registerEx method to allow mocking without duplicating the
service, so that we don't have to make CA thread shutdown safe for
"anytime" instead of just for xpcom-shutdown-threads.  MockRegistrar.registerEx
is newly added to avoid updating all MockRegistrar.register call sites.

Differential Revision: https://phabricator.services.mozilla.com/D242865
2025-03-26 01:07:18 +00:00
..