Do async event targeting when mid-level iframes have ask flag
We used to only look at the eventual target iframe's hit test flag to determine whether we need async event targeting. This is fine with v1 set up because all non-trivial iframes have kHitTestAsk flag. But this resulted in a bug in v2 in this situation: When we have nested main_frame->parent_frame->child_frame and only the mid-level parent_frame has kHitTestAsk flag, we will directly dispatch event to child_frame. This is not correct because parent_frame may have overlapping regions with main_frame divs. This patch makes RWHIER always ask when it encouters a mid-level kHitTestAsk flag. Bug: 896786 Change-Id: Ib9c81ad44d562b251515d8f4dcde572db8d1fa1d Reviewed-on: https://chromium-review.googlesource.com/c/1310114Reviewed-by:Ken Buchanan <kenrb@chromium.org> Reviewed-by:
Ria Jiang <riajiang@chromium.org> Commit-Queue: Xianda Sun <sunxd@chromium.org> Cr-Commit-Position: refs/heads/master@{#606145}
Showing
Please register or sign in to comment