Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bfb4c0bb6e54648af6cf1fcf1533005baf06d540
https://github.com/WebKit/WebKit/commit/bfb4c0bb6e54648af6cf1fcf1533005baf06d540
Author: Simon Fraser <[email protected]>
Date: 2026-05-09 (Sat, 09 May 2026)
Changed paths:
M Source/WebCore/page/scrolling/ScrollingStateNode.h
Log Message:
-----------
WKCompositingLayer leaks
https://bugs.webkit.org/show_bug.cgi?id=314358
rdar://160391523
Reviewed by Tim Horton.
Pages with subscrollers and some kinds of layer configuration changes
triggered leaks of WKCompositingLayers (I was able to reproduce when
playing YouTube shorts).
The bug was that LayerRepresentation's assignment operator failed
to release the old layer.
The fix takes care to not release the old layer before retaining
the new one, in case this is the only reference keeping the layer alive.
A future PR will change LayerRepresentation to use a variant<>, which
will replace this mess.
* Source/WebCore/page/scrolling/ScrollingStateNode.h:
(WebCore::LayerRepresentation::operator=):
Canonical link: https://commits.webkit.org/312950@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications