Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 915b2088b80823da6aed764beb5d68d67b28b7f5
https://github.com/WebKit/WebKit/commit/915b2088b80823da6aed764beb5d68d67b28b7f5
Author: Ruthvik Konda <[email protected]>
Date: 2025-07-11 (Fri, 11 Jul 2025)
Changed paths:
A LayoutTests/fast/parser/elementstack-nesting-depth-expected.txt
A LayoutTests/fast/parser/elementstack-nesting-depth.html
M Source/WebCore/html/parser/HTMLConstructionSite.cpp
Log Message:
-----------
Fix stack overflow triggered by HTML file with deep <div> nesting
https://bugs.webkit.org/show_bug.cgi?id=295722
rdar://152959431
Reviewed by Ryosuke Niwa.
Pop off the HTMLElementStack when we reach max depth to accurately reflect DOM
Tree state and mimic current DOM Tree behavior.
New test makes sure that page successfuly loads given large amount of nested
divs. The bug previously would cause page to hang.
* LayoutTests/fast/parser/elementstack-nesting-depth-expected.txt: Added.
* LayoutTests/fast/parser/elementstack-nesting-depth.html: Added.
* Source/WebCore/html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::attachLater):
Canonical link: https://commits.webkit.org/297288@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes