DescriptionMove Resource::finish() for data URLs from requestResource() to Resource::load()
Previously, for both SubstituteData and data URLs,
1. Resource and ResourceResponse are created and
2. Resource::finish() is always called
in ResourceFetcher::resourceForStaticData() called from requestResource().
However, FontResource and ImageResource don't always start loading in
requestResource(), and thus Resource::finish() shouldn't be called in such
cases.
This CL
1. Creates Resource for a data URL by createResourceForLoading() called in
the main path of requestResource(), and
2. Creates ResourceResponse and calls Resource::finish() in Resource::load().
To do this, most of ResourceFetcher::resourceForStaticData() is moved into
Resource::loadLocallyStaticData(), loadLocallyDataURL() and
loadLocallySubstituteData().
Resource for SubstituteData is still created in a separated path in
requestResource() and Resource::finish() is still called inside
requestResource(), because this is not a problem for SubstituteData.
This CL is [1/4] to load FontResource of data: URLs synchronously so that
all subresource loading of SVG image completes before loading of the SVG file.
BUG=382170
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Temp debug. #Patch Set 4 : auto-Rebase #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 8 (5 generated)
|