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

Issue 1492303003: Load data URI images in an async way according to spec (Closed)

Created:
5 years ago by Yoav Weiss
Modified:
5 years ago
Reviewers:
pdr., esprehn, Mike West
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, kinuko+watch, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Load data URI images in an async way according to spec According to https://github.com/ResponsiveImagesCG/picture-element/issues/223#issuecomment-69772765 we seem to be the only browser that loads data URIs immediately (as if they were cached). It was introduced as part of the move to async image loading: https://codereview.chromium.org/200923002 This is now causing issues: https://code.google.com/p/chromium/issues/detail?id=469131 This CL changes this behavior to be spec compliant and load data URIs asynchronously, like other resources. This is bringing https://codereview.chromium.org/1256233002/ to the Chromium repo. BUG=514206 Committed: https://crrev.com/91aa6fb579a1f656ef274ebe73e426db99b5f52f Cr-Commit-Position: refs/heads/master@{#363444}

Patch Set 1 #

Patch Set 2 : align tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -83 lines) Patch
M third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src.html View 2 chunks +12 lines, -10 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/image-async-loading-data-uris.html View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/basic-buttons.html View 1 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/loader/data-uri-images-load-asynchronously.html View 1 2 chunks +3 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/loader/data-uri-images-load-asynchronously-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/loader/data-uri-images-load-synchronously.html View 1 1 chunk +0 lines, -18 lines 0 comments Download
D third_party/WebKit/LayoutTests/loader/data-uri-images-load-synchronously-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/loader/data-uri-images-reload-asynchronously.html View 1 2 chunks +12 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/loader/data-uri-images-reload-asynchronously-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/loader/data-uri-images-reload-synchronously.html View 1 1 chunk +0 lines, -28 lines 0 comments Download
D third_party/WebKit/LayoutTests/loader/data-uri-images-reload-synchronously-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/canvas/canvas-draw-image-globalalpha.html View 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/canvas/image-svg-intrinsic-size.html View 1 1 chunk +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/ActivityLoggerTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Yoav Weiss
Bringing back https://codereview.chromium.org/1256233002/ to life. This CL makes sure that data URIs are loaded async ...
5 years ago (2015-12-03 13:15:07 UTC) #2
pdr.
On 2015/12/03 at 13:15:07, yoav wrote: > Bringing back https://codereview.chromium.org/1256233002/ to life. This CL makes ...
5 years ago (2015-12-03 20:12:37 UTC) #3
Yoav Weiss
On 2015/12/03 20:12:37, pdr wrote: > On 2015/12/03 at 13:15:07, yoav wrote: > > Bringing ...
5 years ago (2015-12-03 20:50:41 UTC) #4
pdr.
I see, this is the proposal to switch to synchronous datauri images. I misunderstood and ...
5 years ago (2015-12-04 01:17:47 UTC) #6
Yoav Weiss
On 2015/12/04 01:17:47, pdr wrote: > I see, this is the proposal to switch to ...
5 years ago (2015-12-07 07:14:54 UTC) #7
pdr.
On 2015/12/07 at 07:14:54, yoav wrote: > On 2015/12/04 01:17:47, pdr wrote: > > I ...
5 years ago (2015-12-07 07:17:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492303003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1492303003/20001
5 years ago (2015-12-07 07:43:11 UTC) #10
commit-bot: I haz the power
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_ng/builds/145214)
5 years ago (2015-12-07 08:46:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492303003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1492303003/20001
5 years ago (2015-12-07 08:54:07 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-07 10:54:49 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/91aa6fb579a1f656ef274ebe73e426db99b5f52f Cr-Commit-Position: refs/heads/master@{#363444}
5 years ago (2015-12-07 10:55:56 UTC) #17
Yoav Weiss
5 years ago (2015-12-16 07:31:15 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1525793006/ by yoav@yoav.ws.

The reason for reverting is: Perf regressions:
https://code.google.com/p/chromium/issues/detail?id=569023.

Powered by Google App Engine
This is Rietveld 408576698