Silentprinting causes only a white screen to be printed if trying to print from Javascript

RESOLVED WORKSFORME

Status

()

Firefox
Untriaged
RESOLVED WORKSFORME
2 years ago
2 years ago

People

(Reporter: Martin Lang, Unassigned)

Tracking

46 Branch
x86
Windows 10
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

Steps to reproduce:

1. open about:config in firefox 46
2. set print.always_print_silent to true
3. Open any Webpage
4. try to print page from Javascript with window.print();



Actual results:

 only a white page gets printed


Expected results:

should print the page or iframe like it did with firefox 45
(Reporter)

Updated

2 years ago
OS: Unspecified → Windows 10
Hardware: Unspecified → x86

Comment 1

2 years ago
I tried with FF46 32b, it works, the page is fully printed.

Could you test with a fresh profile, please.
https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles
Flags: needinfo?(martin)
(Reporter)

Comment 2

2 years ago
Thanks for the reply,

I tested it with a fresh profile and can confirm that it works then.
Do you have any Idea why that happens in my default Profile as we also have like 5 Customers which have exactly the same issue. Could there be some migration issues with older profiles?

If I can be of any further help just let me know.

Best regards,

Martin Lang

Comment 3

2 years ago
Hard to say, maybe bad prefs about printing.

Could you test in safe mode:
https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode

If that works, you can reset your profile to keep only private data:
https://support.mozilla.org/en-US/kb/reset-firefox-to-fix-most-problems
(Reporter)

Comment 4

2 years ago
Hello Loic,

i found the issue it the

user_pref("print.printer_Drucker_CoWo_Space.print_resolution", 1515870810);

key inside the about:config which for some reason got changed to that large number instead of being the 600 dpi which is set inside the new profile.

I still don´t understand why it works with that high setting, if I keep the print dialog enabled.
Maybe it checks the printer settings as soon as the dialog opens and adjusts its settings to the selected printer.

Best regards,

Martin Lang

Updated

2 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Flags: needinfo?(martin)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.