mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
05c1c6f8d4
This introduces a boolean on nsCSPPolicy / nsIContentSecurityPolicy / Document that is initially false and only set to true after a REQUIRE_TRUSTED_TYPES_FOR_DIRECTIVE directive is associated to the object. This provides fast check and early return when such a directive is absent: - TrustedTypeUtils's GetTrustedTypesCompliantString(), currently used by Element::SetInnertHTML() and Element::InsertAdjacentHTML(). - nsCSPPolicy::AreTrustedTypesForSinkGroupRequired() currently used by ShouldSinkTypeMismatchViolationBeBlockedByCSP() and DoesSinkTypeRequireTrustedTypes(). This also makes nsCSPPolicy::hasDirective() fast for nsIContentSecurityPolicy::REQUIRE_TRUSTED_TYPES_FOR_DIRECTIVE. Differential Revision: https://phabricator.services.mozilla.com/D226882 |
||
---|---|---|
.. | ||
base | ||
events | ||
geolocation | ||
notification | ||
payments | ||
push | ||
security | ||
sidebar | ||
storage | ||
xul |