New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 700815 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Shows blank pdf (with url about:blank) on window.open(url)

Reported by saleemsa...@gmail.com, Mar 13 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36

Steps to reproduce the problem:
1. var url = "/action/generatePDF";
2. window.open(url);
3. 

What is the expected behavior?
It was supposed to open the pdf file generated and return in the action

What went wrong?
It generates pdf but all blank* and url of the windows is "about:blank"

Did this work before? Yes 56.0

Chrome version: 57.0.2987.98  Channel: stable
OS Version: 10.0
Flash Version: 

// Code in generate pdf action (C# .NET)

Response.Clear();
Response.ContentType = result.MimeType;
Response.Cache.SetCacheability(HttpCacheability.Private);
Response.Expires = -1;
Response.Buffer = true;
Response.BinaryWrite(xmlreport.DocumentBytes);
Response.End();
 
Blank PDF Page.png
18.1 KB View Download
Labels: prestable-57.0.2987.98 Needs-Triage-M57
Labels: -Needs-Triage-M57 Needs-Feedback
Is there a publicly accessible website that can demonstrate this issue? That'll make it much easier to confirm the bug and track it down.
@thestig

//yes below are the sample live linkes

var url = "http://fs2.manticapps.com/Common/GetPdf?prmReport={%22reportName%22:%22TestReport%22,%22LineKey%22:%22%22}&tmp=1489682571156";

//This url works fine with 

var w = window.open(url);

//but loads blank pdf with following code
var w = window.open(url); 
w.print(); 
w.close();
Project Member

Comment 4 by sheriffbot@chromium.org, Mar 17 2017

Cc: thestig@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "thestig@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by kochi@chromium.org, Mar 23 2017

Components: -Blink Internals>Plugins>PDF Blink>WindowDialog
@kochi is your comment for me? (If yes then didn't get it...) if no then any one with solution even the status is unconfirmed of this issue...?

Comment 7 by kochi@chromium.org, Mar 23 2017

Sorry if it was confusing.  It was just our process.

We classify bugs into components, to make it easy for someone responsible
for the component to discover and handle them.

This bug is waiting for someone to test your case whether it's reproducible.
(and sorry, I'm not the one to do that)
Cc: sureshkumari@chromium.org
Labels: Needs-Feedback
Unable to reproduce the issue on Windows-10,7,Mac-10.12.3 and Linux Ubuntu-14.04 using chrome stable version 57.0.2987.110 and canary 59.0.3049.0 and reported version 57.0.2987.98 with below url
http://www.pdf995.com/samples/pdf.pdf
Unable to open the url provided in comment#3.Getting 404 error.
Please find the attached screen cast and let us know if anything missed here to reproduce the issue.

Thanks.
700815.mp4
1.9 MB View Download
@sureshkumari thanks for your reply,

You have opened the url and then sent the print command using keyboard i think... What i need to send the print command automatically.

just use the following commands to check the issue in your own pdf link (though its not the same error which I faced but there is one)

var w = window.open("http://www.pdf995.com/samples/pdf.pdf"); 
w.print(); 
w.close();

you can check this code by executing in console...
Project Member

Comment 10 by sheriffbot@chromium.org, Mar 27 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sureshkumari@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Tested the issue on Windows-7,mac-10.12.3 and Linux Ubuntu-14.04 using chrome stable version 57.0.2987.133 and canary 59.0.3055.0 with the steps mentioned in comment#9.
Observed that printpreview is getting closed by executing the below commands
var w = window.open("http://www.pdf995.com/samples/pdf.pdf"); 
w.print(); 
w.close();
and getting the text "undefined"

Please find the attached screen cast and confirm the issue.
Note:Same behavior observed from M30# 30.0.1550.0.

Thanks.
700815.mp4
496 KB View Download
It has been a month and yet unconfirmed... Isn't enough time to confirm such an important issue? or this is important to me only then please let me know because i am struggling with print issue from almost a year now...
Project Member

Comment 14 by sheriffbot@chromium.org, Apr 13 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sureshkumari@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Looks like this got fixed in Version 59.0.3071.0 (Canary, 64-bit, macOS Sierra 10.12.5 Beta 2), I think it should all be good...
Could anyone confirm this?

Thanks!
Sid.
Cc: ranjitkan@chromium.org
Labels: Needs-Feedback
@ saleemsalik: Request you to please confirm by checking on M59 Dev version# 59.0.3071.15 as stated in the comment#15. 

Thanks.!
@ranjitkan

I just updated the chrome now its giving me the version 58.0.3029.81
But still has an issue with the scenario i provided in comment# 3 which is

var url = "http://fs2.manticapps.com/Common/GetPdf?prmReport={%22reportName%22:%22TestReport%22,%22LineKey%22:%22%22}&tmp=1489682571156";
var w = window.open(url); 
w.print(); // This immediate print command creates problem, Send print manually after window is open then works fine.

A New issue as well: Now it is closing the print dialogue in 2,3 seconds without any action performed. Where there is no window.close() command is being used.


Project Member

Comment 18 by sheriffbot@chromium.org, Apr 24 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "ranjitkan@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Please navigate to the below provided link and install the chrome latest beta or dev channel to recheck this issue and kindly update the latest behavior of the bug.

https://www.chromium.org/getting-involved/dev-channel

Thanks!
Update to Version 59.0.3071.25 dev (64-bit)

Still have the same issue, no change
Project Member

Comment 21 by sheriffbot@chromium.org, Apr 27 2017

Cc: brajkumar@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "brajkumar@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: rbasuvula@chromium.org
Unable to reproduce the issue from chrome-TE end .Could some one from Plugins dev team please look in to this issue.

Thank You!
Let me specify the scenario again. There is now issue in 
window.open(url);

The issue is when i send print command write after this line with the following code
window.open(url); window.print();
OR
window.open(url); 
window.print();

The point is print command has to be executed by code immediately, not using keyboard 
Cc: jbanavatu@chromium.org
Labels: Needs-Feedback
As per steps mentioned in Comment 23#, Tested this issue on Windows-10,Mac-10.12.3 and Ubuntu-14.04 using reported chrome stable version #57.0.2987.98 and latest stable #58.0.3029.96.

Observed that on executing following commands in console, PDF is opened in new tab where as print preview is opened in current tab in which the commands are executed.

window.open("http://www.pdf995.com/samples/pdf.pdf"); 
window.print();

Also observed that same behavior is seen from M40 on wards by allowing popups to open PDF in new tab.

@saleemsalik: Please refer to the attached screen-cast and let us know if anything missed here to reproduce the issue. 

Thanks!
700815.webm
2.5 MB View Download
@jbanavatu

Sorry for writing a short code... The scenario is actually for handling the popup window. Please try the following code, you will get the issue

var w = window.open("http://www.pdf995.com/samples/pdf.pdf"); 
w.print(); // This shows blank pdf 

New Issue : it closes the print dialogue immediately as well without any action

Currently i have Chrome Version 60.0.3088.3 (Official Build) dev (64-bit) 

Project Member

Comment 26 by sheriffbot@chromium.org, May 9 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "jbanavatu@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: krajshree@chromium.org
Labels: Needs-Feedback
saleemsalik@ - Could you please check the original issue i.e chrome generating a blank pdf and url of the windows "about:blank" by upgrading chrome to latest stable #58.0.3029.110 and please update the thread.

Able to reproduce the new issue as in the comment #25 i.e closes the print dialogue immediately as well without any action in Win-10 using chrome version #60.0.3088.3.
Please raise a new issue for the same.

Thanks...!!


krajshree@
i am not the owner of this issue and couldn't find any option to mark it fixed. Can you please mark it fixed
Project Member

Comment 29 by sheriffbot@chromium.org, May 12 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "krajshree@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: WontFix (was: Unconfirmed)
As per comment #28, closing this issue and please feel free to raise a new issue if you face any issues in latest chrome channels.

Thanks!

Sign in to add a comment