gecko-dev/dom/interfaces
Frédéric Wang 05c1c6f8d4 Bug 1909168 - Add fast paths for sink checks when trusted types are not used. r=smaug
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
2024-11-02 08:09:35 +00:00
..
base Bug 1725806 - Part 3. Autocorrect support in InputContext. r=masayuki 2024-10-28 17:06:49 +00:00
events
geolocation
notification Bug 1894039 - Part 1: Use BindingUtils functions for enums r=asuth 2024-05-14 14:13:28 +00:00
payments Bug 1881863 - Part 1: Standardize on boolean over bool in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,extension-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,anti-tracking-reviewers,places-reviewers,nalexander,emilio,zombie,sgalich,karlt,lina,Standard8 2024-04-04 18:45:21 +00:00
push Bug 1921207 - PushNotificationsCleaner support for OriginAttributesPattern. r=anti-tracking-reviewers,geckoview-reviewers,saschanaz,owlish,timhuang 2024-09-30 12:33:06 +00:00
security Bug 1909168 - Add fast paths for sink checks when trusted types are not used. r=smaug 2024-11-02 08:09:35 +00:00
sidebar
storage Bug 1881863 - Part 1: Standardize on boolean over bool in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,extension-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,anti-tracking-reviewers,places-reviewers,nalexander,emilio,zombie,sgalich,karlt,lina,Standard8 2024-04-04 18:45:21 +00:00
xul