Name Description Size Coverage
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 -
content_analysis -
ContentAnalysis.cpp static 128398 -
ContentAnalysis.h 22555 -
ContentAnalysisBackend.cpp 8861 -
ContentAnalysisBackend.h 5120 -
ContentAnalysisBackendFactory.cpp 696 -
ContentAnalysisIPCTypes.h 3200 -
ContentAnalysisRuleParser.cpp 4230 -
ContentAnalysisRuleParser.h 1732 -
ContentAnalysisShared.h 980 -
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. 5990 -
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 -
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 -
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 -
ExternalAgentBackend.cpp 44817 -
ExternalAgentBackend.h 6445 -
metrics.yaml 8599 -
moz.build 1956 -
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. 21808 -
tests -
tsconfig.json 282 -
WasmModuleBackend.cpp 13889 -
WasmModuleBackend.h 3168 -