-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Potential crash when updating Interaction Regions layers
<rdar://117358144> Reviewed by David Kilzer. When appending at the end of a sublayers array, we shouldn't look up the `objectAtIndex` at this (out of bounds) position. * Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeInteractionRegionLayers.mm: (WebKit::updateLayersForInteractionRegions): Add a comment and an assertion about the `insertionPoint` range. Check for the appending case and skip the objectAtIndex lookup. * Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeNode.mm: (WebKit::RemoteLayerTreeNode::repositionInteractionRegionsContainerIfNeeded): Add a comment and an assertion about the `insertionPoint` range. Check for the appending case and skip the objectAtIndex lookup. * LayoutTests/interaction-region/layer-tree.html: Make the test a bit more readable and make sure we exercise the layer reuse, layer move and layer append code paths. No expectations change needed. Originally-landed-as: 272448.238@safari-7618-branch (a2d409b). rdar://124556170 Canonical link: https://commits.webkit.org/276602@main
- Loading branch information
1 parent
123b9c7
commit cbebffc
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters