DescriptionMake internals.isPreloaded() to remain the same before/after clearPreloads()
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
Committed: https://crrev.com/7978814bba57818814b7a10aa3366e16c6d33784
Cr-Commit-Position: refs/heads/master@{#418821}
Patch Set 1 #Patch Set 2 : Add test expectation. #Patch Set 3 : Allow preloads before enableIsPreloadedForTest() #
Total comments: 2
Patch Set 4 : Reflect comments #
Total comments: 2
Patch Set 5 : const auto& #
Messages
Total messages: 22 (11 generated)
|