Handle instantiation of scroll linked animations with uninitialized scroll source.
This changes fixes Issue 976633: Null-dereference READ in blink::ScrollTimeline::GetDocument. I can't recreate the crash scenario, but I suspect that it's a racing condition when ScrollTimeline is created with uninitialized document.scrollingElement. The fix is to initialize ScrollTimeline.document with the document passed in the constructor instead of consulting the scroll source. Bug: 976633 Change-Id: I76a7b660e543e3a0ea9512554bb194813a203a2f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1670074Reviewed-by:Robert Flack <flackr@chromium.org> Commit-Queue: Olga Gerchikov <gerchiko@microsoft.com> Cr-Commit-Position: refs/heads/master@{#671457}
Showing
Please register or sign in to comment