Skip to content

Conversation

rniwa
Copy link
Member

@rniwa rniwa commented Jan 10, 2023

bb2cc18

Nullptr crash in effectiveAssignedNodes
https://bugs.webkit.org/show_bug.cgi?id=250365

Reviewed by Alexey Shvayka and Tim Nguyen.

Add a nullptr check in effectiveAssignedNodes.

* LayoutTests/fast/shadow-dom/manual-slot-gc-crash-expected.txt: Added.
* LayoutTests/fast/shadow-dom/manual-slot-gc-crash.html: Added.
* Source/WebCore/dom/SlotAssignment.cpp:
(WebCore::effectiveAssignedNodes):

Canonical link: https://commits.webkit.org/258708@main

044d0de

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe 🛠 🧪 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🛠 gtk ✅ 🛠 wincairo
✅ 🧪 webkitperl 🧪 ios-wk2 🧪 api-mac 🧪 gtk-wk2
🧪 api-ios ✅ 🧪 mac-wk1 🧪 api-gtk
✅ 🛠 tv ✅ 🧪 mac-wk2
✅ 🛠 tv-sim ✅ 🧪 mac-AS-debug-wk2
✅ 🛠 watch ✅ 🧪 mac-wk2-stress
✅ 🛠 watch-sim
✅ 🛠 🧪 unsafe-merge

@rniwa rniwa requested a review from cdumez as a code owner January 10, 2023 08:18
@rniwa rniwa self-assigned this Jan 10, 2023
@rniwa rniwa added the DOM For bugs specific to XML/HTML DOM elements (including parsing). label Jan 10, 2023
@rniwa rniwa added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jan 10, 2023
https://bugs.webkit.org/show_bug.cgi?id=250365

Reviewed by Alexey Shvayka and Tim Nguyen.

Add a nullptr check in effectiveAssignedNodes.

* LayoutTests/fast/shadow-dom/manual-slot-gc-crash-expected.txt: Added.
* LayoutTests/fast/shadow-dom/manual-slot-gc-crash.html: Added.
* Source/WebCore/dom/SlotAssignment.cpp:
(WebCore::effectiveAssignedNodes):

Canonical link: https://commits.webkit.org/258708@main
@webkit-commit-queue
Copy link
Collaborator

Committed 258708@main (bb2cc18): https://commits.webkit.org/258708@main

Reviewed commits have been landed. Closing PR #8437 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit bb2cc18 into WebKit:main Jan 10, 2023
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jan 10, 2023
@rniwa rniwa deleted the fix250365 branch January 10, 2023 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DOM For bugs specific to XML/HTML DOM elements (including parsing).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants