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

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

Created:
4 years ago by Yoav Weiss
Modified:
3 years, 11 months ago
Reviewers:
pdr., dgozman, pfeldman
CC:
chromium-reviews, tyoshino+watch_chromium.org, pfeldman+blink_chromium.org, blink-reviews-html_chromium.org, loading-reviews+parser_chromium.org, lushnikov+blink_chromium.org, loading-reviews_chromium.org, dglazkov+blink, caseq+blink_chromium.org, apavlov+blink_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, blink-reviews, kinuko+watch, Nate Chapin, pfeldman, kozyatinskiy+blink_chromium.org
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 relanding https://codereview.chromium.org/1492303003 and https://codereview.chromium.org/2173003002/ BUG=514206 Committed: https://crrev.com/b6403174c6111ea0947dc7cf8b1eb8a6f9e8546c Cr-Commit-Position: refs/heads/master@{#441184}

Patch Set 1 #

Patch Set 2 : Fixed tests #

Patch Set 3 : Fix browser test #

Total comments: 1

Patch Set 4 : Modified tests to be onload based #

Patch Set 5 : Fixed more devtools reliance on sync loading #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -160 lines) Patch
M chrome/test/data/extensions/api_test/automation/tests/tabs/image_data.js View 1 2 3 1 chunk +33 lines, -31 lines 0 comments Download
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 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/waterfall-images.html View 1 2 chunks +9 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/loader/data-uri-images-load-asynchronously.html View 2 chunks +3 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/loader/data-uri-images-load-asynchronously-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/loader/data-uri-images-load-synchronously.html View 1 chunk +0 lines, -18 lines 0 comments Download
D third_party/WebKit/LayoutTests/loader/data-uri-images-load-synchronously-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/loader/data-uri-images-reload-asynchronously.html View 2 chunks +12 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/loader/data-uri-images-reload-asynchronously-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/loader/data-uri-images-reload-synchronously.html View 1 chunk +0 lines, -28 lines 0 comments Download
D third_party/WebKit/LayoutTests/loader/data-uri-images-reload-synchronously-expected.txt View 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 chunk +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js View 1 2 3 1 chunk +14 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js View 1 2 3 4 1 chunk +22 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineEventOverview.js View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ActivityLoggerTest.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 48 (29 generated)
Yoav Weiss
Hey, Finally got around to working on async data URI image loading again. This is ...
4 years ago (2016-12-21 21:24:38 UTC) #4
Yoav Weiss
On 2016/12/21 21:24:38, Yoav Weiss wrote: > Hey, > > Finally got around to working ...
4 years ago (2016-12-21 23:07:26 UTC) #7
Yoav Weiss
On 2016/12/21 23:07:26, Yoav Weiss wrote: > On 2016/12/21 21:24:38, Yoav Weiss wrote: > > ...
4 years ago (2016-12-22 12:04:25 UTC) #16
pdr.
On 2016/12/22 at 12:04:25, yoav wrote: > On 2016/12/21 23:07:26, Yoav Weiss wrote: > > ...
4 years ago (2016-12-22 21:19:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2592113003/40001
4 years ago (2016-12-22 21:20:32 UTC) #19
Yoav Weiss
On 2016/12/22 21:19:41, pdr (OOO Dec 23 to Jan 2) wrote: > On 2016/12/22 at ...
4 years ago (2016-12-22 21:24:57 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/331862)
4 years ago (2016-12-22 21:27:29 UTC) #22
Yoav Weiss
On 2016/12/22 21:27:29, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years ago (2016-12-22 21:32:16 UTC) #23
dgozman
https://codereview.chromium.org/2592113003/diff/40001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js (right): https://codereview.chromium.org/2592113003/diff/40001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js#newcode457 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js:457: setTimeout(function() { Should this be pageImage.onload = ... ? ...
3 years, 12 months ago (2016-12-27 07:08:24 UTC) #25
Yoav Weiss
On 2016/12/27 07:08:24, dgozman wrote: > https://codereview.chromium.org/2592113003/diff/40001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js > File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js > (right): > > https://codereview.chromium.org/2592113003/diff/40001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js#newcode457 ...
3 years, 11 months ago (2017-01-02 11:28:26 UTC) #28
Yoav Weiss
On 2017/01/02 11:28:26, Yoav Weiss wrote: > On 2016/12/27 07:08:24, dgozman wrote: > > > ...
3 years, 11 months ago (2017-01-02 11:29:02 UTC) #29
dgozman
Should we change all data-url images to use onload? https://cs.chromium.org/chromium/src/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js?rcl=0&l=151 Also, does this change mean ...
3 years, 11 months ago (2017-01-02 16:56:17 UTC) #32
Yoav Weiss
On 2017/01/02 16:56:17, dgozman wrote: > Should we change all data-url images to use onload? ...
3 years, 11 months ago (2017-01-02 17:09:04 UTC) #33
Yoav Weiss
On 2017/01/02 17:09:04, Yoav Weiss wrote: > On 2017/01/02 16:56:17, dgozman wrote: > > Should ...
3 years, 11 months ago (2017-01-02 20:31:59 UTC) #34
dgozman
Thank you for the fixes! lgtm
3 years, 11 months ago (2017-01-03 18:06:13 UTC) #39
Yoav Weiss
On 2017/01/03 18:06:13, dgozman wrote: > Thank you for the fixes! lgtm Thanks for reviewing! ...
3 years, 11 months ago (2017-01-03 19:31:51 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2592113003/80001
3 years, 11 months ago (2017-01-03 19:32:48 UTC) #43
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 11 months ago (2017-01-03 19:40:33 UTC) #46
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 19:42:50 UTC) #48
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b6403174c6111ea0947dc7cf8b1eb8a6f9e8546c
Cr-Commit-Position: refs/heads/master@{#441184}

Powered by Google App Engine
This is Rietveld 408576698