• hiroshige's avatar
    Make internals.isPreloaded() to remain the same before/after clearPreloads() · 7978814b
    hiroshige authored
    Previously, internals.isPreloaded() depends on |ResourceFetcher::m_preloads|,
    which is cleared by ResourceFetcher::clearPreloads().
    This caused internals.isPreloaded() to turn false after around document's
    load event.
    
    This CL makes ResourceFetcher to keep a set of preloaded URLs (separately
    from |m_preloads|) if a blink::Internals object is created, and use the set
    to calculate internals.isPreloaded().
    
    BUG=643621
    
    Review-Url: https://codereview.chromium.org/2332333003
    Cr-Commit-Position: refs/heads/master@{#418821}
    7978814b
is-preloaded-after-load.html 885 Bytes