Skip to content

Commit

Permalink
Backed out 6 changesets (bug 1712140) for causing sanitizer failures …
Browse files Browse the repository at this point in the history
…on nsHtml5TreeBuilder.cpp. CLOSED TREE

Backed out changeset b374469160e9 (bug 1712140)
Backed out changeset dfc44cccff32 (bug 1712140)
Backed out changeset 3a35e1401130 (bug 1712140)
Backed out changeset a93481858c38 (bug 1712140)
Backed out changeset a861fd445f56 (bug 1712140)
Backed out changeset dc1dc389f2dc (bug 1712140)

UltraBlame original commit: d6000f1e4ebbd251c5b8f50b0f12435733b7b218
  • Loading branch information
marco-c committed Dec 7, 2023
1 parent ce45fc5 commit 00b53f6
Show file tree
Hide file tree
Showing 44 changed files with 19,099 additions and 4,072 deletions.
172 changes: 0 additions & 172 deletions dom/base/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8304,10 +8304,6 @@ mCloningForSVGUse
(
false
)
mAllowDeclarativeShadowRoots
(
false
)
mXMLDeclarationBits
(
0
Expand Down Expand Up @@ -89804,172 +89800,4 @@ UpdateHiddenByContentVisibility
;
}
}
void
Document
:
:
SetAllowDeclarativeShadowRoots
(
bool
aAllowDeclarativeShadowRoots
)
{
mAllowDeclarativeShadowRoots
=
aAllowDeclarativeShadowRoots
;
}
bool
Document
:
:
AllowsDeclarativeShadowRoots
(
)
const
{
return
mAllowDeclarativeShadowRoots
;
}
already_AddRefed
<
Document
>
Document
:
:
ParseHTMLUnsafe
(
GlobalObject
&
aGlobal
const
nsAString
&
aHTML
)
{
nsCOMPtr
<
nsIURI
>
uri
;
NS_NewURI
(
getter_AddRefs
(
uri
)
"
about
:
blank
"
)
;
if
(
!
uri
)
{
return
nullptr
;
}
nsCOMPtr
<
Document
>
doc
;
nsresult
rv
=
NS_NewHTMLDocument
(
getter_AddRefs
(
doc
)
aGlobal
.
GetSubjectPrincipal
(
)
aGlobal
.
GetSubjectPrincipal
(
)
)
;
if
(
NS_WARN_IF
(
NS_FAILED
(
rv
)
)
)
{
return
nullptr
;
}
doc
-
>
SetAllowDeclarativeShadowRoots
(
true
)
;
doc
-
>
SetDocumentURI
(
uri
)
;
rv
=
nsContentUtils
:
:
ParseDocumentHTML
(
aHTML
doc
false
)
;
if
(
NS_WARN_IF
(
NS_FAILED
(
rv
)
)
)
{
return
nullptr
;
}
return
doc
.
forget
(
)
;
}
}
34 changes: 0 additions & 34 deletions dom/base/Document.h
Original file line number Diff line number Diff line change
Expand Up @@ -11128,19 +11128,6 @@ AllowsL10n
)
const
;
void
SetAllowDeclarativeShadowRoots
(
bool
aAllowDeclarativeShadowRoots
)
;
bool
AllowsDeclarativeShadowRoots
(
)
const
;
protected
:
RefPtr
Expand Down Expand Up @@ -13617,11 +13604,6 @@ mCloningForSVGUse
:
1
;
bool
mAllowDeclarativeShadowRoots
:
1
;
Maybe
<
RFPTarget
Expand Down Expand Up @@ -14555,22 +14537,6 @@ OwnedRadioGroupContainer
(
)
;
static
already_AddRefed
<
Document
>
ParseHTMLUnsafe
(
GlobalObject
&
aGlobal
const
nsAString
&
aHTML
)
;
}
;
NS_DEFINE_STATIC_IID_ACCESSOR
Expand Down
83 changes: 0 additions & 83 deletions dom/base/Element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7081,8 +7081,6 @@ aInit
ErrorResult
&
aError
ShadowRootDeclarative
aNewShadowIsDeclarative
)
{
if
Expand All @@ -7106,28 +7104,11 @@ nullptr
}
if
(
RefPtr
<
ShadowRoot
>
root
=
GetShadowRoot
(
)
)
{
if
(
!
root
-
>
IsDeclarative
(
)
)
{
aError
.
Throw
Expand All @@ -7139,31 +7120,6 @@ return
nullptr
;
}
root
-
>
SetIsDeclarative
(
aNewShadowIsDeclarative
)
;
root
-
>
ReplaceChildren
(
nullptr
aError
)
;
return
root
.
forget
(
)
;
}
if
(
StaticPrefs
Expand Down Expand Up @@ -7199,16 +7155,6 @@ mDelegatesFocus
aInit
.
mSlotAssignment
ShadowRootClonable
(
aInit
.
mClonable
)
ShadowRootDeclarative
(
aNewShadowIsDeclarative
)
)
;
}
Expand All @@ -7227,10 +7173,6 @@ DelegatesFocus
aDelegatesFocus
SlotAssignmentMode
aSlotAssignment
ShadowRootClonable
aClonable
ShadowRootDeclarative
aDeclarative
)
{
nsAutoScriptBlocker
Expand Down Expand Up @@ -7325,8 +7267,6 @@ this
aMode
aDelegatesFocus
aSlotAssignment
aClonable
aDeclarative
nodeInfo
.
forget
Expand Down Expand Up @@ -26067,27 +26007,4 @@ GetHTMLEditorInternal
nullptr
;
}
void
Element
:
:
SetHTMLUnsafe
(
const
nsAString
&
aHTML
)
{
nsContentUtils
:
:
SetHTMLUnsafe
(
this
this
aHTML
)
;
}
}
Loading

0 comments on commit 00b53f6

Please sign in to comment.