Skip to content

Commit

Permalink
Bug 1864838 - Update our Sanitizer to the new proposed WebIDL. r=emil…
Browse files Browse the repository at this point in the history
…io,freddyb

The new proposed WebIDL is at WICG/sanitizer-api#181 (comment).
Sadly we don't have a real spec for this yet. Luckily this is mostly
just a renaming. The biggest change is that every <element> in elements: now has a list of allowed and removed attributes.

Differential Revision: https://phabricator.services.mozilla.com/D193642

UltraBlame original commit: 8c7aa601f08a38022d337a34788b7e75e5ca4aed
  • Loading branch information
marco-c committed Nov 30, 2023
1 parent 27dc280 commit d0a4538
Show file tree
Hide file tree
Showing 5 changed files with 1,016 additions and 775 deletions.
77 changes: 42 additions & 35 deletions dom/base/Element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33099,14 +33099,16 @@ fragment
}
if
(
!
aError
.
Failed
(
)
)
{
return
;
}
/
/
Suppress
Expand Down Expand Up @@ -33166,24 +33168,6 @@ GetChildCount
)
)
;
RefPtr
<
Sanitizer
>
sanitizer
;
if
(
!
aOptions
.
mSanitizer
.
WasPassed
(
)
)
{
nsCOMPtr
<
nsIGlobalObject
Expand Down Expand Up @@ -33215,6 +33199,44 @@ global
return
;
}
RefPtr
<
Sanitizer
>
sanitizer
;
if
(
aOptions
.
mSanitizer
.
WasPassed
(
)
)
{
sanitizer
=
Sanitizer
:
:
New
(
global
aOptions
.
mSanitizer
.
Value
(
)
aError
)
;
}
else
{
sanitizer
=
Sanitizer
Expand All @@ -33228,6 +33250,7 @@ global
aError
)
;
}
if
(
aError
Expand All @@ -33240,21 +33263,6 @@ Failed
return
;
}
}
else
{
sanitizer
=
&
aOptions
.
mSanitizer
.
Value
(
)
;
}
sanitizer
-
>
Expand Down Expand Up @@ -33315,7 +33323,6 @@ oldChildCount
)
;
}
}
bool
Element
:
Expand Down
Loading

0 comments on commit d0a4538

Please sign in to comment.