DescriptionFix crash when accessing automation node from stale AX tree
The problem is that the root node of a stale AX tree computes its id
dynamically, but if that AX tree doesn't exist anymore it was returning
undefined, and then passing undefined to any of the native bindinds was a
fatal error.
The solution is just to return -1 instead of undefined as the id.
BUG=526255
Committed: https://crrev.com/ace50646dcd95261ef8e6aca2096458828532fbc
Cr-Commit-Position: refs/heads/master@{#346394}
Patch Set 1 #Patch Set 2 : Add test #Patch Set 3 : Put setTimeout in else to be more clear #
Total comments: 2
Depends on Patchset: Messages
Total messages: 14 (4 generated)
|