Closed Bug 1667422 Opened 4 years ago Closed 4 years ago

Silent print work not correctly

Categories

(Core :: Printing: Output, defect)

Firefox 81
defect

Tracking

()

RESOLVED DUPLICATE of bug 1667342

People

(Reporter: leehue.pw, Unassigned)

References

Details

Attachments

(1 file)

Attached video print_silent_bug.mp4 (deleted) —

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0

Steps to reproduce:

print.always_print_silent set TRUE
Click on print page

Actual results:

Page is printed well, but pop-up windows don't close/

Expected results:

After the page is printed, the pop-up window should close.
This bug is only in the latest version firefox 81. In version 79 and 80.0.1 all work well.

Version: 79 Branch → Firefox 81

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Printing: Output
Product: Firefox → Core
Flags: needinfo?(emilio)

I think this might just be bug 1667342...

Is there any chance you could save one of the open popups so that we can see the source?

Alternatively, can you check on tomorrow's nightly, or on a build from e.g. here? (that's just the artifact from this try push which contains my patches)

Flags: needinfo?(emilio) → needinfo?(leehue.pw)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<title>Печать чека</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<head>
<style>body {font-size:16px;}</style><style>
html {margin:0; padding:0;}
body {width:70mm; margin:0; padding:5px 10px;}
</style>
</head>
<body>
<table width='100%' border='0' cellpadding='3' cellspacing='0'><tr valign='top'><td colspan='3' align='left'>25.09.2020 22:30 № 72340</td></tr><tr valign='top'><td colspan='3' align='left' style='border-bottom:1px solid #000;'></td></tr><tr valign='top'><td align='left'>Some text</td><td align='right'>1</td></tr><tr valign='top'><td colspan='2' align='left' style='border-bottom:1px solid #000;'></td></tr><tr valign='top'><td colspan='2' align='left'>Товарных позиций: 1</td></tr><tr valign='top'><td colspan='2' align='left'>Кол-во: 1</td></tr><tr valign='top'><td colspan='2' align='left'>Персон: 4</td></tr></table><script type="text/javascript">
window.onload = function() {
window.print(); window.close();}
</script>
</body>
</html>

Flags: needinfo?(leehue.pw)

Yeah, exactly that... It's calling window.print() then window.close() from onload... This will be fixed by bug 1667342, we should probably uplift it.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

Sorry, I don't quite understand what to do. I'm just a user. I passed the information, I think it won't be much use further from me.

(In reply to Lee Hue from comment #5)

Sorry, I don't quite understand what to do. I'm just a user. I passed the information, I think it won't be much use further from me.

Yeah, no problem. Somebody reported the same issue this morning and I already landed a fix. Thanks for reporting it!

We should put the fix in beta as it seems to affect sites in the wild, and it'll be fixed in Firefox 82. Maybe we should consider it for an 81 update too.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: