Silent print work not correctly
Categories
(Core :: Printing: Output, defect)
Tracking
()
People
(Reporter: leehue.pw, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
video/mp4
|
Details |
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.
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Updated•4 years ago
|
Comment 2•4 years ago
|
||
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)
<!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>
Comment 4•4 years ago
|
||
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.
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.
Comment 6•4 years ago
|
||
(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.
Description
•