Open Bug 1751390 Opened 3 years ago Updated 3 years ago

print_to_filename is ignored on Windows

Categories

(Core :: Printing: Setup, defect, P3)

defect

Tracking

()

People

(Reporter: saschanaz, Unassigned, NeedInfo)

References

Details

https://searchfox.org/mozilla-central/rev/c1598f6d3edad19ccc53f53ab045d1d29835e1dd/widget/windows/nsDeviceContextSpecWin.cpp#274

Somehow it doesn't enter the branch at all since the format is kOutputFormatNative. I'm not sure in which case it becomes kOutputFormatPDF, I guess probably never?

I found this during writing test for fuzzer issue, and I have no real use case.

Flags: needinfo?(krosylight)

Thanks! Can it be somehow simulated in mochitest?

Flags: needinfo?(krosylight) → needinfo?(jwatt)

Why do you want that? We have other ways to test print output.

Flags: needinfo?(krosylight)
Severity: -- → N/A
Priority: -- → P3

For crashtest: https://searchfox.org/mozilla-central/rev/78963fe42f8d5f582f84da84a5e78377b6c1fc32/dom/base/crashtests/crashtests.list#264

See also "See also" 😉

(That "Mozilla Print to PDF" didn't work locally though. Dunno why)

Flags: needinfo?(krosylight)
You need to log in before you can comment on or make changes to this bug.