Branch: refs/heads/webkitglib/2.48
  Home:   https://github.com/WebKit/WebKit
  Commit: 925b1cdf3f85da428ec3b6342bc38581ec79f205
      
https://github.com/WebKit/WebKit/commit/925b1cdf3f85da428ec3b6342bc38581ec79f205
  Author: Ruthvik Konda <[email protected]>
  Date:   2025-07-17 (Thu, 17 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:
  -----------
  Cherry-pick 297288@main (915b2088b808). 
https://bugs.webkit.org/show_bug.cgi?id=295722

    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

Canonical link: https://commits.webkit.org/290945.282@webkitglib/2.48



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

Reply via email to