Allow experimenting with the printResolution
AppOption when printing with the built-in Firefox version
#10898
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As have already been stated multiple times, simply increasing the printing resolution may have undesirable effects on both memory usage and general performance. Hence why PR #10854 did not add a preference, and only exposed AppOption by default in
GENERIC
builds for now.However, considering how differently printing works in the built-in Firefox version (with
mozPrintCallback
) compared to the general default viewer, any testing done in the latter case might not be completely relevant to the first (and most important) case of the Firefox PDF Viewer.Note that considering the implementation of
AppOptions.get
, this patch will be safe and should allow experimenting withprintResolution
in all builds of the default viewer[1]. By not, however, havingprintResolution
appear in AppOptions for either theMOZCENTRAL
orCHROMIUM
build targets, there should be no indication of official support for now.Furthermore, it shouldn't be a preference at this point in time (or even at all), since that makes it too easy for users to change it permanently[2] and possible "break" printing.
[1] By running
PDFViewerApplicationOptions.get('printResolution', /* value here */);
in the console after the viewer loads.[2] I've seen Firefox bugs, filed in Bugzilla, where users modified e.g. preferences manually in
about:config
and then some time later (maybe months) wondered why something was suddenly broken. In those cases, trying to work out that a preference change was the culprit can take time/effort.