Regression: [DevTools] Blank page is seen after opening capture screenshot in new tab.
Reported by
rk...@etouch.net,
Jul 28 2016
|
|||||||
Issue descriptionChrome Version:54.0.2810.0 (Official Build) 24d606bb2a3e6290b97d9731c1dfd4dbfcb948e7-refs/heads/master@{#408294} OS: Mac (10.10.5,10.11.4), Windows (7,8,10) What steps will reproduce the problem? (1) Launch chrome, open NTP and then open dev tools window. (2) Click on 'Toggle device toolbar', click on 'More options' on toolbar then click on 'Capture screenshot' (3) Click on 'SHOW ALL' to open the downloads page and open capture screenshot in new tab, observe Blank page is seen after opening capture screenshot in new tab. Blank page should not seen i.e capture screenshot should open. This is a regression issue, broken in 'M-54' will soon update the other info:
,
Jul 28 2016
Adding RB Label as this is a recent Regression. Please remove if not required. Thank You.
,
Aug 3 2016
The issue is indeed related to my change. However, I believe that the real issue here is that the screenshot functionality somehow relies on data URIs sync loading, in a way that is not tested. So I suggest an immediate revert of my change, which will be followed by a fix to the real underlying issue, after which we'd be able to re-land async loading of data URIs.
,
Aug 3 2016
Revert sent to the CQ. pfeldman@ - do you know who could look into the screen capturing issue?
,
Aug 3 2016
@yoav: devtools paints the image on the canvas and then does
var link = createElement("a");
link.download = fileName + ".png";
link.href = canvas.toDataURL("image/png");
link.click();
I'm not sure where we rely upon async loading of URIs since we don't load URIs in this case...
,
Aug 5 2016
pfeldman@- interesting. So you suspect link downloading of a data URI is what actually broke with that patch? So you know if we have tests for that? (or know who would?)
,
Aug 5 2016
@yoav: if it is bisected to your patch, you are our best bet.
,
Aug 5 2016
Adding Downloads component, and rdsmith@ as proxy for asanka@ (who is OOO). I don't know how <a download>s work, but I bet this is turning something deterministic into a race between the image loading and the download initiating.
,
Aug 5 2016
Hmm actually now I'm not so sure. From the video it seems like the problem might be navigating the main frame to a data url? It might make sense to diff two <a download>s with and without the patch.
,
Aug 8 2016
Nevermind. I have confirmed that the data url that is saved is corrupt somehow. Saving it and opening it in another application / chrome M52 also shows an empty image. Yoav@, what is the status of the revert?
,
Aug 8 2016
Hm. I'm having trouble reproducing this on any other canvas element using the technique illustrated in #5. All data urls save and display fine. pfeldman@, can you give a reference to where in the code devtools does this saving?
,
Aug 12 2016
This is working fine on the latest canary 54.0.2827.0 using Mac 10.11.6,Win 7 and Ubuntu 14.04. rkote@ : Could you please review the attached screen cast and let us know if its fine. Removed the Blocker label as its working fine on latest canary.
,
Aug 12 2016
With respect to comment 12: Issue is seems to be fixed in latest build 54.0.2827.0 Thank you.
,
Aug 12 2016
Yoav reverted the patch, so this issue is fixed.
,
Dec 21 2016
Turns out the devtools dependency on sync loading wasn't in the link's download but when loading the image before painting it on the canvas... CL up for review at https://codereview.chromium.org/2592113003/ |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by rk...@etouch.net
, Jul 28 2016Owner: y...@yoav.ws
Status: Assigned (was: Unconfirmed)
694 KB
694 KB View Download
828 KB
828 KB View Download