• Collin Baker's avatar
    Handle same-document navigations in ThumbnailReadinessTracker · 9fadfadc
    Collin Baker authored
    Same-document navigations (such as history.pushState() calls) cause
    associated DidStartNavigation() and DidFinishNavigation()
    calls. However, since this isn't considered a load,
    DocumentOnLoadCompletedInMainFrame() is sensibly not called.
    
    ThumbnailReadinessTracker assumed DidStartNavigation eventually lead
    to a DocumentOnLoadCompletedInMainFrame call (or an error). This meant
    that pages using history.pushState(), such as YouTube, had
    never-ending thumbnail capture.
    
    This CL fixes the never-ending capture.
    
    Bug: 1120940
    Change-Id: Ia298d384b44bcc2b860260826952898972daf480
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382426Reviewed-by: default avatarDana Fried <dfried@chromium.org>
    Commit-Queue: Collin Baker <collinbaker@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#803294}
    9fadfadc
iframe_1.html 59 Bytes