Handle same-document navigations in ThumbnailReadinessTracker
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:Dana Fried <dfried@chromium.org> Commit-Queue: Collin Baker <collinbaker@chromium.org> Cr-Commit-Position: refs/heads/master@{#803294}
Showing
Please register or sign in to comment