-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assert that scripts don't execute in UA shadow tree updates during st…
…yle resolution https://bugs.webkit.org/show_bug.cgi?id=242348 Reviewed by Alan Bujtas. This patch adds a new release assertion that no author scripts are executed while updating the user agent shadow roots of from and SVG use elements. Most of this patch instantiates ScriptDisallowedScope::EventAllowedScope and reorders code so that DOM mutation happen after a node got inserted into a tree with EventAllowedScope. * Source/WebCore/dom/Document.cpp: (WebCore::Document::resolveStyle): This is the main change. * Source/WebCore/dom/Element.cpp: (WebCore::Element::cloneElementWithChildren): * Source/WebCore/html/BaseDateAndTimeInputType.cpp: (WebCore::BaseDateAndTimeInputType::createShadowSubtree): * Source/WebCore/html/ColorInputType.cpp: (WebCore::ColorInputType::createShadowSubtree): * Source/WebCore/html/FileInputType.cpp: (WebCore::UploadButtonElement::createInternal): (WebCore::FileInputType::createShadowSubtree): * Source/WebCore/html/RangeInputType.cpp: (WebCore::RangeInputType::createShadowSubtree): * Source/WebCore/html/SearchInputType.cpp: (WebCore::SearchInputType::createShadowSubtree): * Source/WebCore/html/TextFieldInputType.cpp: (WebCore::TextFieldInputType::createShadowSubtree): (WebCore::TextFieldInputType::createAutoFillButton): * Source/WebCore/html/shadow/DateTimeEditElement.cpp: (WebCore::DateTimeEditBuilder::visitLiteral): (WebCore::DateTimeEditElement::create): (WebCore::DateTimeEditElement::layout): * Source/WebCore/html/shadow/DateTimeFieldElements.cpp: (WebCore::DateTimeDayFieldElement::create): (WebCore::DateTimeHourFieldElement::create): (WebCore::DateTimeMeridiemFieldElement::create): (WebCore::DateTimeMillisecondFieldElement::create): (WebCore::DateTimeMinuteFieldElement::create): (WebCore::DateTimeMonthFieldElement::create): (WebCore::DateTimeSecondFieldElement::create): (WebCore::DateTimeSymbolicMonthFieldElement::create): (WebCore::DateTimeYearFieldElement::create): * Source/WebCore/html/shadow/SliderThumbElement.cpp: (WebCore::SliderThumbElement::create): (WebCore::SliderContainerElement::create): * Source/WebCore/html/shadow/SpinButtonElement.cpp: (WebCore::SpinButtonElement::create): * Source/WebCore/html/shadow/TextControlInnerElements.cpp: (WebCore::TextControlInnerTextElement::create): (WebCore::TextControlPlaceholderElement::create): (WebCore::SearchFieldCancelButtonElement::create): * Source/WebCore/svg/SVGUseElement.cpp: (WebCore::SVGUseElement::updateUserAgentShadowTree): (WebCore::SVGUseElement::cloneTarget const): (WebCore::SVGUseElement::expandUseElementsInShadowTree const): (WebCore::SVGUseElement::expandSymbolElementsInShadowTree const): Canonical link: https://commits.webkit.org/252551@main
- Loading branch information
Showing
14 changed files
with
63 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.