• Bret Sepulveda's avatar
    Fix TabStripModel::IsNewTabAtEndOfTabStrip never returning true. · e78b9a12
    Bret Sepulveda authored
    TabStripModel::IsNewTabAtEndOfTabStrip is called during a tab navigation
    and is intended to prevent the opener relationship of that tab from
    being forgotten if it returns true. However, GetURL was changed to
    return the visible URL (i.e. the one being loaded) instead of the last
    committed URL, so this would always fail. Also updates the associated
    test, which was not doing a navigation.
    
    Bug: 896929
    Change-Id: I3f00e3f6f84da2986bab96b85aeb5eb04ef3cb21
    Reviewed-on: https://chromium-review.googlesource.com/c/1292003
    Commit-Queue: Bret Sepulveda <bsep@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#601808}
    e78b9a12
tab_strip_model.cc 57.1 KB