New issue
Advanced search Search tips

Issue 835702 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 26
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug-Regression



Sign in to add a comment

printing an iframe can omit <object> and <embed> tags

Reported by alecdu...@gmail.com, Apr 23 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36

Steps to reproduce the problem:
1. Extract the attached zip file somewhere.
2. Run "python3 -m http.server" or another web server from the directory you unzipped to
3. Open http://localhost:8000/test.html in Chrome.
4. Enter "document.querySelector('iframe').contentWindow.print()" in the console.
5. Cancel the print preview, and run the above command again.

What is the expected behavior?
Both times you call print(), you should see three images as you see in the iframe on the page.

What went wrong?
The first time you call print(), you only see the <img> tag. When you call print() again after cancelling the preview, you see all three images.

Did this work before? Yes 65

Does this work in other browsers? Yes

Chrome version: 66.0.3359.117  Channel: stable
OS Version: 10
Flash Version:
 
chrome-iframe-print-bug.zip
8.3 KB Download
Components: Internals>Printing
Labels: Needs-Bisect Needs-Triage-M66
Labels: Triaged-ET Needs-Feedback
Unable to reproduce the issue on chrome reported version 66.0.3359.117 using Windows-10 with steps mentioned below:
1) Launched chrome reported version, unzipped(provided in comment#0) and placed the file on desktop
2) Created a local server and navigated to URL: http://localhost:8000/test.html and opened Devtools>Console
3) Entered "document.querySelector('iframe').contentWindow.print()" in console, print preview window appears, able to see three images on it
4) Clicked on cancel button and again entered "document.querySelector('iframe').contentWindow.print()" in console, able to three images on print preview window

@Reporter: Please find the attached screencast for your reference and let us know if we missed anything in reproducing the issue, try to test this issue by creating new person with no apps and extensions in it and let us know if the issue still persists, provide your feedback on it which help in further triaging the issue in better way.

Thanks!
835702.mp4
2.6 MB View Download
Labels: -Pri-2 -Needs-Bisect -Needs-Triage-M66 Pri-3
I also consistently see 3 images every time.
I would suggest asking a friend to try this on there computer and see if they can reproduce the problem.
Hi,

Thanks for looking into this. I'll try to reproduce this again and create a
screencast.

This was definitely a real issue - it was discovered and reported to us on
the same day after a Chrome update by several of our clients, and was
happening across multiple platforms. We fixed it by changing our code to
use (IIRC) iframe instead of object.

Cheers,
Alex
Project Member

Comment 7 by sheriffbot@chromium.org, Jun 7 2018

Cc: viswa.karala@chromium.org
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: vamshi.kommuri@chromium.org
Labels: Needs-Feedback
As per comment#6 adding Needs-Feedback label, waiting for a screen cast from the reporter. 

@Reporter: In C#6 "We fixed it by changing our code to use (IIRC) iframe instead of object." does this mean the issue is no longer seen...? 

Thanks!

Labels: -Hotlist-Interop
Status: WontFix (was: Unconfirmed)
Closing since we can't reproduce and the bug reporter found a workaround.

Sign in to add a comment