Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 272448.252@safari-7618-branch (a797780). https://bugs.web…
…kit.org/show_bug.cgi?id=265820 NULL pointer : crash under RenderLayerCompositor::scrollableAreaForScrollingNodeID() https://bugs.webkit.org/show_bug.cgi?id=265820 rdar://118424482. Reviewed by Simon Fraser. Null RenderLayer pointer in RenderLayerCompositor::scrollableAreaForScrollingNodeID(). As the RenderLayerCompositor has a HashMap which provides a WeakPtr to RenderLayer but the validity of this object is not checked before using. * LayoutTests/fast/rendering/render-compositor-null-layer-crash-expected.txt: Added test expected file. * LayoutTests/fast/rendering/render-compositor-null-layer-crash.html: Added test case. * Source/WebCore/rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::scrollableAreaForScrollingNodeID const): Checked validity of WeakPtr to RenderLayer before accessing it. Canonical link: https://commits.webkit.org/272448.252@safari-7618-branch Canonical link: https://commits.webkit.org/274313.68@webkitglib/2.44
- Loading branch information