Name Description Size Coverage CI issues
components.conf 824 -
content-analysis-wasm-sandbox.js Lower the caller-supplied rule objects into the module's FfiRule ABI in linear memory. Allocates every buffer up front (linear-memory addresses stay valid as memory grows), then writes them all with a single fresh view. Returns the rules-array pointer/count plus the allocations to free afterward. @param {*} ex The module with ca_alloc entry point @param {Array} aRules The rules to convert @returns {{ptr: number, count: number, allocations: Array<{ptr: number, len: number}>}} 8510 98 %
content_analysis 45 %
ContentAnalysis.cpp 132673 81 %
ContentAnalysis.h 22961 93 %
ContentAnalysisBackend.cpp 8861 76 %
ContentAnalysisBackend.h 5120 38 %
ContentAnalysisBackendFactory.cpp 696 100 %
ContentAnalysisIPCTypes.h 3200 100 %
ContentAnalysisRuleParser.cpp 4230 95 %
ContentAnalysisRuleParser.h 1732 100 %
ContentAnalysisShared.h 980 100 %
ContentAnalysisUtils.sys.mjs Contains helper methods for JS code that need to call into Content Analysis. Note that most JS code will not need to explicitly use this - this is only for edge cases that the existing C++ code does not handle, such as pasting into a prompt() or pasting into the GenAI chatbot shortcut menu. 11183 90 %
ContentAnalysisWasmChild.sys.mjs Content-process half of the content-analysis WebAssembly runner. This actor runs the module in a null-principal sandbox so that compiling it is permitted. 2071 96 %
ContentAnalysisWasmParent.sys.mjs Parent-process half of the content-analysis WebAssembly runner actor. It is intentionally thin: ContentAnalysisWasmRunner obtains this actor via ChromeUtils.ensureHeadlessContentProcess + getActor and calls the child. 512 100 %
ContentAnalysisWasmRunner.sys.mjs Parent-process driver for the in-process WebAssembly DLP module. Called by the C++ WasmModuleBackend, which passes a serialized ContentAnalysisRequest and expects a serialized ContentAnalysisResponse back. This runs in the parent process so it cannot compile or run the module - that work is done by the ContentAnalysisWasm actor. 4912 90 %
ExternalAgentBackend.cpp 44890 87 %
ExternalAgentBackend.h 6445 100 %
metrics.yaml 8599 -
moz.build 2134 -
nsIContentAnalysis.idl Acknowledge receipt of an analysis response. If false is passed for aAutoAcknowledge to AnalyzeContentRequest, the caller is responsible for calling this after successful resolution of the promise. 21837 -
<1%tests 96 %
tsconfig.json 282 -
WasmModuleBackend.cpp 13889 83 %
WasmModuleBackend.h 3168 100 %