• Adithya Srinivasan's avatar
    Portals: Deflake browser tests · d6485b57
    Adithya Srinivasan authored
    Previously, in multiple instances, we used a navigation observer to wait
    for the first portal navigation with the assumption that navigation wasn't
    already complete. This assumption was incorrect, the portal could navigate
    before we return from the ExecJs call that initiated the navigation. This
    CL creates the observer before calling ExecJs
    
    Bug: 990717, 998107
    Change-Id: I8d73b2c39e343e625fa9423291568af2c69e35cd
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1873239Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
    Commit-Queue: Adithya Srinivasan <adithyas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#709009}
    d6485b57
portal_browsertest.cc 55.2 KB