Page 1 of 1

Networked printing no longer working in Firefox in Windows 10

Posted: Thu Nov 09, 2017 3:12 am
by cornflake
In Windows 10 recently sometime within the last month or two I guess my networked printer stopped printing properly in sandboxed Firefox. I was using Sandboxie 5.20 and upgraded to 5.22 today but it hasn't made a difference. Right now I'm running Windows 10 "Version 1703 (OS Build 15063.674)" and Sandboxie 5.22 64-bit and Firefox 56.0 32-bit. Chrome still works fine. Both Firefox and Chrome still work fine to print in Windows 8.1.

Nothing in my configuration has changed. I have a global OpenFilePath=C:\Windows\Temp and the Firefox section looks like this:

Code: Select all

[Firefox]

Enabled=y
ConfigLevel=7
AutoRecover=y
Template=Firefox_Force
Template=BlockPorts
Template=LingerPrograms
Template=Firefox_Phishing_DirectAccess
Template=AutoRecoverIgnore
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Favorites%
RecoverFolder=%Desktop%
BorderColor=#00FFFF,off
BoxNameTitle=n
ForceProcess=<FirefoxPrograms>
DropAdminRights=y
On some pages I see "An error occurred while printing". On other pages it appears to work to print but nothing is actually printed and the file size has some weird amount like 223 bytes or 334 bytes or something. It will say "Printing" in the queue but then it errors, I think because the data is corrupt. For example take this file which prints fine in Windows 8.1 Chrome and Firefox, and Windows 10 Chrome but not Firefox:

Code: Select all

https://www.cms.gov/Medicare/CMS-Forms/CMS-Forms/downloads/cms1490s-english.pdf
Is anyone running sandboxed Firefox in Windows 10 able to print that PDF form to a networked printer?

Re: Networked printing no longer working in Firefox in Windows 10

Posted: Thu Nov 09, 2017 6:11 am
by APMichael
Printing in Firefox needs the following:

1) Add to your Sandboxie.ini (Firefox section):

Code: Select all

OpenFilePath=firefox.exe,%UserProfile%\AppData\LocalLow\Mozilla\temp-*
2) Open Firefox outside Sandboxie,
type "about:config" and accept the risk,
search "sandbox",
switch "security.sandbox.content.level" from 3 to 2,
close Firefox.

Re: Networked printing no longer working in Firefox in Windows 10

Posted: Fri Nov 10, 2017 12:20 am
by cornflake
Thanks I will try that. I would prefer not to open my mozilla temp directory because I run multiple sandboxes with Firefox and I don't want them to get crisscrossed. Do you know why is that necessary now in Windows 10?

Re: Networked printing no longer working in Firefox in Windows 10

Posted: Fri Nov 10, 2017 9:57 am
by Barb@Invincea
Hello cornflake,

This is not a Windows 10 issue, but a compatibility issue between Firefox and Sandboxie.
You can find more info here:
viewtopic.php?f=11&t=23902&start=75

The workaround should allow you to print.

Regards,
Barb.-

Re: Networked printing no longer working in Firefox in Windows 10

Posted: Sun Nov 12, 2017 3:31 pm
by cornflake
The line APMichael gave did allow me to print. I did not have to change security.sandbox.content.level.

Code: Select all

OpenFilePath=firefox.exe,%UserProfile%\AppData\LocalLow\Mozilla\temp-*
I don't understand why that is required now in Windows 10 but not Windows 8.1 if it is not a Windows 10 issue. Also I think you should fix it so that I can keep my sandboxes separate. In other words I don't think I should have to open up file paths.

Re: Networked printing no longer working in Firefox in Windows 10

Posted: Mon Nov 13, 2017 10:47 am
by Barb@Invincea
Hello cornflake,

This is a known-issue and once a fix is found, it will be added to a beta/release.
Until then, if you want to print from Firefox, you'll need to use the workaround.

Regards,
Barb.-