[LayoutNG] Fix Heap-use-after-free in GetDocument
The fix is not to allow paint fragment traversal if layout is dirty. The traversal was triggered by: NGPaintFragment::SetShouldDoFullPaintInvalidationForFirstLine There were other methods doing unsafe paint fragment traversals, and this will prevent all of them from traversing a dirty layout tree. Bug: 962141 Change-Id: I2b44a2cdb250f26f654e108787477f2190a35658 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1612219Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Emil A Eklund <eae@chromium.org> Commit-Queue: Aleks Totic <atotic@chromium.org> Cr-Commit-Position: refs/heads/master@{#659675}
Showing
Please register or sign in to comment