• Xianda Sun's avatar
    Do async event targeting when mid-level iframes have ask flag · f009bbf9
    Xianda Sun authored
    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: default avatarKen Buchanan <kenrb@chromium.org>
    Reviewed-by: default avatarRia Jiang <riajiang@chromium.org>
    Commit-Queue: Xianda Sun <sunxd@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#606145}
    f009bbf9
site_per_process_hit_test_browsertest.cc 245 KB