Early return from WebAXContext::Root() if document is no longer active
It is an error to call AXContext::GetAXObjectCache() if the underlying document is no longer active, so early return in that case to prevent crashes that might otherwise happen in some cases, as the one detected by clusterfuzz in crbug.com/1094576. This method is used by AXTreeSnapshotterImpl::SnapshotContentTree(), which will behave correctly after receiving a default WebAXObject in these cases, since the root.UpdateLayoutAndCheckValidity() check will return false in that case and early return as well as in other cases that hit the same code path. Bug: 1094576 Change-Id: I5879b3637db0279d0fdd507c0916426ff459aeda Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2416370Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Mario Sanchez Prada <mario@igalia.com> Cr-Commit-Position: refs/heads/master@{#807895}
Showing
Please register or sign in to comment