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 f1e5d28 commit 612381f
Show file tree
Hide file tree
Showing 5 changed files with 648 additions and 298 deletions.
77 changes: 42 additions & 35 deletions dom/base/Element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25629,14 +25629,16 @@ fragment
}
if
(
!
aError
.
Failed
(
)
)
{
return
;
}
nsAutoScriptBlockerSuppressNodeRemoved
scriptBlocker
;
Expand All @@ -25656,24 +25658,6 @@ GetChildCount
)
)
;
RefPtr
<
Sanitizer
>
sanitizer
;
if
(
!
aOptions
.
mSanitizer
.
WasPassed
(
)
)
{
nsCOMPtr
<
nsIGlobalObject
Expand Down Expand Up @@ -25705,6 +25689,44 @@ global
return
;
}
RefPtr
<
Sanitizer
>
sanitizer
;
if
(
aOptions
.
mSanitizer
.
WasPassed
(
)
)
{
sanitizer
=
Sanitizer
:
:
New
(
global
aOptions
.
mSanitizer
.
Value
(
)
aError
)
;
}
else
{
sanitizer
=
Sanitizer
Expand All @@ -25718,6 +25740,7 @@ global
aError
)
;
}
if
(
aError
Expand All @@ -25730,21 +25753,6 @@ Failed
return
;
}
}
else
{
sanitizer
=
&
aOptions
.
mSanitizer
.
Value
(
)
;
}
sanitizer
-
>
Expand Down Expand Up @@ -25805,7 +25813,6 @@ oldChildCount
)
;
}
}
bool
Element
:
Expand Down
Loading

0 comments on commit 612381f

Please sign in to comment.