Files
sousa-gecko/js/xpconnect/loader
Nika Layzell ec9837a9f1 Bug 2049046 - Add a unified mechanism for determining when a content process becomes untrusted, r=dom-core-reviewers,necko-reviewers,dom-worker-reviewers,valentin,edenchuang,mccr8
The ScriptCache has a simple system for determining when the process is
untrusted to ensure that script cache writes are finished before
untrusted content is loaded in the content process.

This expands this system to more explicitly cover multiple potential
causes of becoming untrusted, and exposes a threadsafe flag which can be
checked to see if the process could have started loading untrusted
content.

Much like the existing ScriptCache threshold, this is defined very
conservatively, such that we cannot have loaded untrusted content before
the threshold.

Differential Revision: https://phabricator.services.mozilla.com/D307885
2026-06-25 16:21:57 +00:00
..
…