New issue
Advanced search Search tips

Issue 889179 link

Starred by 3 users

Issue metadata

Status: Archived
Owner: ----
Closed: Jan 16
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

iFrame failing at contentWindow.print()

Reported by caitlin....@gmail.com, Sep 25

Issue description

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

Steps to reproduce the problem:
1. When creating and requesting iFrame to Print and view Preview PDF (code is called)

viewInvoiceDialog.append("<iframe id='ViewInvoiceDialogIframe' src='" + url + "' style='width:98%; height:98%;'></iframe>");

$("#ViewInvoiceDialogIframe").ready(function () {                                   
 document.getElementById("ViewInvoiceDialogIframe").focus();                                        
 document.getElementById("ViewInvoiceDialogIframe").contentWindow.print();
});

2. Chrome crashes. The network request was called but stops at opening the iFrame. 

HTML: 
<div id="ViewInvoiceDialog" style="display:none">
    <iframe id="ViewInvoiceIframe" src="" style='width:98%; height:98%'></iframe>
</div>

What is the expected behavior?
Open Print Preview PDF. Was working up until this past week. Working on IE & FireFox

What went wrong?
Browser crashes. I do not have a crash report in my Chrome Folder

Did this work before? Yes 

Does this work in other browsers? Yes

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

When 'contentWindow.print()` is commented out, Chrome does not crash.

Was updated on 9/19
69.0.3497.100_68.0.3440.106_
 

Comment 1 Deleted

Wanted to note this application is secured, served on a VPN, although uses HTTP.

Console Error:

site.bundle..... Resource interpreted as Document but transferred with MIME type application/pdf: "http://filelocationrnd=1537931149268&invoiceFileName=Invoicenumber.pdf". 
Labels: Needs-Triage-M69 Needs-Bisect
Cc: viswa.karala@chromium.org
Labels: Triaged-ET Needs-Feedback
Unable to reproduce the issue on chrome reported version# 69.0.3497.100 using Windows-10 with steps mentioned below:
1) Launched chrome reported version and created '.html' file with data provided in comment# 0
(HTML: 
<div id="ViewInvoiceDialog" style="display:none">
    <iframe id="ViewInvoiceIframe" src="" style='width:98%; height:98%'></iframe>
</div>)
2) Dragged and dropped the file into new tab page, didn't observed anything on the page
3) Also tried by creating local server and opened the file, but didn't observed any print preview page.

Observations: Tried by pasting the below in console, seen "Uncaught ReferenceError"
(viewInvoiceDialog.append("<iframe id='ViewInvoiceDialogIframe' src='" + url + "' style='width:98%; height:98%;'></iframe>");

$("#ViewInvoiceDialogIframe").ready(function () {                                   
 document.getElementById("ViewInvoiceDialogIframe").focus();                                        
 document.getElementById("ViewInvoiceDialogIframe").contentWindow.print();
});)

@Reporter: Please find the attached screencsat for your reference and let us know if we missed anything in reproducing the issue. Provide your feedback on it which help ion further triaging it in better way. If possible could you please provide screencast of the issue which help in better understanding.

Thanks!
889179.mp4
2.0 MB View Download
2018-09-28_12-22-04.mp4
5.3 MB View Download
I am setting the 'src' value of an <iFrame> to a PDF on our own private server.
Project Member

Comment 7 by sheriffbot@chromium.org, Sep 28

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
It should render like the screen shot below, this was on IE.
Labels: Needs-Feedback
As per screencast attached in comment# 5, we tried to test this issue using the URL: https://hub.autotruck.com. But, on navigating to that URL it shows a message " This site can't provide secure connection". 

@Reporter: Please find the attached screenshots for your reference and provide your feedback on it. If possible could you please any sample Test file/URL(sample credentials if required) that reproduces the issue which helps us in further triaging it in better way.

Thanks!
889179.PNG
19.4 KB View Download
That's because the site is secured and only employees can have access to it. 
I initially stated that you need to VPN into the site. Which is why I provided the code for the call to render the iFrame.
Project Member

Comment 11 by sheriffbot@chromium.org, Oct 1

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Stability-Crash Needs-Feedback
@Reporter: As mentioned in comment# 0(step-2 in steps to reproduce the problem), you are facing a chrome crash when you clicked on print preview of PDF. Could you please provide crash ID by navigating to chrome://crashes, which will helps us in further triaging it.

Thanks!
Local Crash ID 1fce931e-61cf-450b-919f-d19ace95fe3f
Project Member

Comment 14 by sheriffbot@chromium.org, Oct 3

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Crash report captured on Wednesday, October 3, 2018 at 8:17:39 AM (upload requested by user, not yet uploaded)


Please let me know if you need anything else!
Components: UI>Browser>PrintPreview
Cc: jbanavatu@chromium.org
Labels: Needs-Feedback
@ Reporter: Could you please provide 16 digit crash ID by navigating to chrome://crashes as highlighted in the screenshot.

Thanks!
crash.png
24.7 KB View Download
Capture.JPG
18.2 KB View Download
This is all that is given.
Project Member

Comment 21 by sheriffbot@chromium.org, Oct 8

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: thestig@chromium.org ekaramad@chromium.org weili@chromium.org
Components: Internals>Plugins>PDF
Comment 19: Would you be willing to click the "Send now" button on that report to send us the crash report?  It looks like you otherwise have crash reporting disabled, so we aren't able to look into it (since we aren't able to reproduce the crash ourselves).

If so, please reply with the "Uploaded Crash Report ID" that should appear shortly after sending the report, and we'll be able to investigate what's happening.  Thanks!

(CC'ing thestig@, weili@, and ekaramad@ in case this is in the printing/PDF logic.)
Labels: Needs-Feedback
If you can kindly hit the "Send now" link to upload the crash report, we can take a look and see what went wrong.
Just to follow up, we still need a crash report ID.
Components: -Blink>HTML

Comment 26 by thestig@chromium.org, Jan 16 (6 days ago)

Status: Archived (was: Unconfirmed)
We never heard back. If you are still experiencing a crash, please get the crash report ID.

Sign in to add a comment