• sandromaggi's avatar
    [Autofill Assistant] Resolve RFH via frame id instead of name · c1c3152a
    sandromaggi authored
    Previously, the frame's RenderFrameHost (RFH) was selected
    based on its name / url. This only works if the site actively
    sets the name attribute on the iframe it uses, which was not
    done everywhere. Resolving with id seems more stable.
    Fallback to name / url is kept in place for the time being.
    
    This fixes the resolution (and thus the autofill) for both local
    iframes and OOPIF.
    
    Note: This is a copy of crrev/c/1893876
    Refer to that for discussions. The original change could not be
    submitted because an unintended somehow irreversible checkin blocked
    the submit.
    
    Bug: b/143318024
    Change-Id: I6fc3ea0d210b500e06769c5129e00766d933eb65
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1899775Reviewed-by: default avatarMathias Carlen <mcarlen@chromium.org>
    Commit-Queue: Sandro Maggi <sandromaggi@google.com>
    Cr-Commit-Position: refs/heads/master@{#712588}
    c1c3152a
client_status.cc 4.13 KB