Changeset 285732 in webkit
- Timestamp:
- Nov 12, 2021, 11:02:40 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/shadow-dom/shadow-root-gc-crash-expected.txt (added)
-
LayoutTests/fast/shadow-dom/shadow-root-gc-crash.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/SlotAssignment.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r285728 r285732 1 2021-11-12 Rob Buis <rbuis@igalia.com> 2 3 Null check host in SlotAssignment::assignSlots 4 https://bugs.webkit.org/show_bug.cgi?id=230899 5 6 Reviewed by Darin Adler. 7 8 * fast/shadow-dom/shadow-root-gc-crash-expected.txt: Added. 9 * fast/shadow-dom/shadow-root-gc-crash.html: Added. 10 1 11 2021-11-12 Antoine Quint <graouts@webkit.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r285731 r285732 1 2021-11-12 Rob Buis <rbuis@igalia.com> 2 3 Null check host in SlotAssignment::assignSlots 4 https://bugs.webkit.org/show_bug.cgi?id=230899 5 6 Reviewed by Darin Adler. 7 8 Null check host in SlotAssignment::assignSlots. 9 10 Tests: fast/shadow-dom/shadow-root-gc-crash.html 11 12 * dom/SlotAssignment.cpp: 13 (WebCore::SlotAssignment::assignSlots): 14 1 15 2021-11-12 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/Source/WebCore/dom/SlotAssignment.cpp
r284969 r285732 357 357 entry.value->assignedNodes.shrink(0); 358 358 359 auto& host = *shadowRoot.host(); 360 for (auto* child = host.firstChild(); child; child = child->nextSibling()) { 361 if (!is<Text>(*child) && !is<Element>(*child)) 362 continue; 363 auto slotName = slotNameForHostChild(*child); 364 assignToSlot(*child, slotName); 359 if (auto* host = shadowRoot.host()) { 360 for (auto* child = host->firstChild(); child; child = child->nextSibling()) { 361 if (!is<Text>(*child) && !is<Element>(*child)) 362 continue; 363 auto slotName = slotNameForHostChild(*child); 364 assignToSlot(*child, slotName); 365 } 365 366 } 366 367
Note:
See TracChangeset
for help on using the changeset viewer.