[FCP++] TextPaint: inconsistency for node removal while pending swap time
In the current implementation, it's possible to create inconsistency while a node waiting to be assigned with a swap time is removed. When this happens, the detector still creates a record of the removed text, but it shouldn't, as the created record could become the candidate metric result. The cause is that when a record is assigned with a swap time, there is no check of whether the node has been removed. To fix this issue, we should mark the node as deleted when the node is removed from the dom tree, and add the checking of validity when we assign the swap time to the record. The CL implements this fix. Bug: 869924 Change-Id: Ie331d40fbad585cf32828c1b99136056d429c5b0 Reviewed-on: https://chromium-review.googlesource.com/c/1354130Reviewed-by:Steve Kobes <skobes@chromium.org> Commit-Queue: Liquan (Max) Gǔ <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#612444}
Showing
Please register or sign in to comment