Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Issue 1700233003: [WIP][SVG 2/4] Make data URL handling in ResourceFetcher and WebURLLoaderImpl consistent

Created:
4 years, 10 months ago by hiroshige
Modified:
4 years, 8 months ago
Reviewers:
pdr., Nate Chapin
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make data URL handling in ResourceFetcher and WebURLLoaderImpl consistent Two different conditions are used for whether data URLs can be served locally: - Resource::loadLocallyDataURL() creates Resource of a data: URL if BlinkPlatformImpl::parseDataURL() succeeds. - WebURLLoaderImpl serves a data: URL within the renderer process if WebURLLoaderImpl::Context::CanHandleDataURLRequestLocally() returns true. This CL makes these two the same, i.e. to use CanHandleDataURLRequestLocally(). This CL renames parseDataURL() to parseDataURLIfCanBeHandledLocally(), and makes it to use CanHandleDataURLRequestLocally(). This change particularly allows data URLs with font/ MIME types loaded as subresources to be served by ResourceFetcher synchronously. They were previously rejected due to MIME type checks in parseDataURL(). This CL might increase or decrease the number of net::DataURL::Parse() calls. This CL is [2/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 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Do not expose CanHandleDataURLRequestLocally, and rename parseDataURL( ) to parseDataURLIfCanBeHand… #

Patch Set 8 : Rebase. #

Patch Set 9 : auto-Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -25 lines) Patch
M content/child/blink_platform_impl.h View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 4 5 6 1 chunk +15 lines, -7 lines 0 comments Download
M content/child/web_url_loader_impl.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 37 (21 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700233003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700233003/1
4 years, 10 months ago (2016-02-16 22:08:48 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-16 23:49:41 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700233003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700233003/60001
4 years, 9 months ago (2016-02-29 19:47:04 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/187726)
4 years, 9 months ago (2016-02-29 20:28:36 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700233003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700233003/80001
4 years, 9 months ago (2016-02-29 21:17:53 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700233003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700233003/100001
4 years, 9 months ago (2016-02-29 21:51:45 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-29 23:25:55 UTC) #16
hiroshige
PTAL. Added pdr@ as the author of https://codereview.chromium.org/16096016.
4 years, 9 months ago (2016-03-01 18:45:43 UTC) #22
pdr.
On 2016/03/01 at 18:45:43, hiroshige wrote: > PTAL. > > Added pdr@ as the author ...
4 years, 9 months ago (2016-03-01 18:52:06 UTC) #23
Nate Chapin
LGTM. I don't especially like exposing canHandleDataURLRequestLocally() on Platform. The alternative is to change parseDataURL() ...
4 years, 9 months ago (2016-03-01 19:11:37 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700233003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700233003/120001
4 years, 9 months ago (2016-03-01 20:18:51 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 21:49:11 UTC) #28
hiroshige
On 2016/03/01 19:11:37, Nate Chapin wrote: > LGTM. > > I don't especially like exposing ...
4 years, 9 months ago (2016-03-01 22:09:47 UTC) #29
Nate Chapin
lgtm
4 years, 9 months ago (2016-03-01 23:08:12 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700233003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700233003/140001
4 years, 9 months ago (2016-03-02 22:44:57 UTC) #32
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 00:17:57 UTC) #36
Dry run: Try jobs failed on following builders:
  win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)

Powered by Google App Engine
This is Rietveld 408576698