Hey,
Finally got around to working on async data URI image loading again. This is
reviving https://codereview.chromium.org/2173003002/ which revived
https://codereview.chromium.org/1492303003
Let's hope third time's a charm...
On top of the previous patch, this also changed the devtools' screen capture
mechanism to be asynchronous, so that it won't break by this patch.
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/358963)
On 2016/12/21 21:24:38, Yoav Weiss wrote:
> Hey,
>
> Finally got around to working on async data URI image loading again. This is
> reviving https://codereview.chromium.org/2173003002/ which revived
> https://codereview.chromium.org/1492303003
> Let's hope third time's a charm...
>
> On top of the previous patch, this also changed the devtools' screen capture
> mechanism to be asynchronous, so that it won't break by this patch.
hmm, this seems to have broken a couple of tests :/
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws to run a CQ dry run
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/359294)
On 2016/12/21 23:07:26, Yoav Weiss wrote:
> On 2016/12/21 21:24:38, Yoav Weiss wrote:
> > Hey,
> >
> > Finally got around to working on async data URI image loading again. This is
> > reviving https://codereview.chromium.org/2173003002/ which revived
> > https://codereview.chromium.org/1492303003
> > Let's hope third time's a charm...
> >
> > On top of the previous patch, this also changed the devtools' screen capture
> > mechanism to be asynchronous, so that it won't break by this patch.
>
> hmm, this seems to have broken a couple of tests :/
And it's green!!
pdr.
On 2016/12/22 at 12:04:25, yoav wrote: > On 2016/12/21 23:07:26, Yoav Weiss wrote: > > ...
On 2016/12/22 at 12:04:25, yoav wrote:
> On 2016/12/21 23:07:26, Yoav Weiss wrote:
> > On 2016/12/21 21:24:38, Yoav Weiss wrote:
> > > Hey,
> > >
> > > Finally got around to working on async data URI image loading again. This
is
> > > reviving https://codereview.chromium.org/2173003002/ which revived
> > > https://codereview.chromium.org/1492303003
> > > Let's hope third time's a charm...
> > >
> > > On top of the previous patch, this also changed the devtools' screen
capture
> > > mechanism to be asynchronous, so that it won't break by this patch.
> >
> > hmm, this seems to have broken a couple of tests :/
>
> And it's green!!
LGTM!!
On 2016/12/22 21:19:41, pdr (OOO Dec 23 to Jan 2) wrote:
> On 2016/12/22 at 12:04:25, yoav wrote:
> > On 2016/12/21 23:07:26, Yoav Weiss wrote:
> > > On 2016/12/21 21:24:38, Yoav Weiss wrote:
> > > > Hey,
> > > >
> > > > Finally got around to working on async data URI image loading again.
This
> is
> > > > reviving https://codereview.chromium.org/2173003002/ which revived
> > > > https://codereview.chromium.org/1492303003
> > > > Let's hope third time's a charm...
> > > >
> > > > On top of the previous patch, this also changed the devtools' screen
> capture
> > > > mechanism to be asynchronous, so that it won't break by this patch.
> > >
> > > hmm, this seems to have broken a couple of tests :/
> >
> > And it's green!!
>
> LGTM!!
Thanks! Fingers crossed that it sticks this time...
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
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)
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
On 2017/01/02 11:28:26, Yoav Weiss wrote:
> On 2016/12/27 07:08:24, dgozman wrote:
> >
>
https://codereview.chromium.org/2592113003/diff/40001/third_party/WebKit/Sour...
> > File
third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
> > (right):
> >
> >
>
https://codereview.chromium.org/2592113003/diff/40001/third_party/WebKit/Sour...
> >
third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js:457:
> > setTimeout(function() {
> > Should this be pageImage.onload = ... ?
> > Also, using arrow function eliminates the need for |scope|.
>
> Good point. Modified the tests to be onload based.
As well as the actual code...
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 11 months ago
(2017-01-02 12:53:46 UTC)
#30
3 years, 11 months ago
(2017-01-02 12:53:47 UTC)
#31
Dry run: This issue passed the CQ dry run.
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
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
On 2017/01/02 17:09:04, Yoav Weiss wrote:
> On 2017/01/02 16:56:17, dgozman wrote:
> > Should we change all data-url images to use onload?
> >
>
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/devtools/front...
>
> Yes, we should. I guess the question is, do we want to land all such changes
as
> part of this CL, or can they land separately.
>
> >
> > Also, does this change mean that |complete| is never true synchronously?
> >
>
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/devtools/front...
>
> Yeah.
>
> >
> > I hope this doesn't affect third-party developers, but sometimes web
platform
> > api changes which require DevTools frontend patch break more than expected.
>
> Open Web developers should not rely on synchronous data URI loading for
images,
> as it's not something that works across browsers. (Chrome-only according to
>
https://github.com/ResponsiveImagesCG/picture-element/issues/223#issuecomment...
> )
Fixed the devtools code you spotted that relied on sync loading of data URIs.
PTAL
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws to run a CQ dry run
3 years, 11 months ago
(2017-01-02 20:37:19 UTC)
#35
The CQ bit was checked by yoav@yoav.ws to run a CQ dry run
commit-bot: I haz the power
Dry run: 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-02 20:37:30 UTC)
#36
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., pfeldman, dgozman
Base URL:
Comments: 1