[Webkit-unassigned] [Bug 18282] WebKit crashes with deeply nested divs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 24 09:21:01 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=18282

vidavera <vidavera at aol.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vidavera at aol.com

--- Comment #55 from vidavera <vidavera at aol.com> ---
(In reply to Keith Kyzivat from comment #12)
> (repeated from bug 30898)
> 
> I have a proposed patch that I've had done for a while now, was just trying
> to
> think if there would be any better way to do it.
> 
> It caps the tree in the parser when parser adds a node, and also in
> Javascript
> when a node is appended.
> There is no memory consumption increase, but there is a hit in performance,
> since depth of node to be added/appended to is calculated, for each
> add/append.
> 
> Since there is a performance hit, I added a build flag to turn it on, and
> specify the maximum depth.  Under standard desktop browsers with large max
> stack size, this can be omitted, since the maximum depth is generally in the
> hundreds of thousands.  For low-memory devices, this is a bigger deal, and
> thus
> they may configure webkit with --enable-domtree-maxdepth=<value>.
> 
> Patch coming shortly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231124/ed8eeca7/attachment.htm>


More information about the webkit-unassigned mailing list