[GeckoView] Bundle the Firefox printing code in the viewer (bug 1810111)

This may not be enough, on its own, to completely fix [bug 1810111](https://bugzilla.mozilla.org/show_bug.cgi?id=1810111) however it's impossible for printing to work in GeckoView without this patch.
This commit is contained in:
Jonas Jenwald 2023-03-16 14:22:14 +01:00
parent 0ad5a5551a
commit e77c7f336d
5 changed files with 67 additions and 3 deletions

View file

@ -14,6 +14,7 @@
*/
import "web-com";
import "web-print_service";
import { RenderingStates, ScrollMode, SpreadMode } from "./ui_utils.js";
import { AppOptions } from "./app_options.js";
import { LinkTarget } from "./pdf_link_service.js";
@ -55,6 +56,7 @@ function getViewerConfiguration() {
submitButton: document.getElementById("passwordSubmit"),
cancelButton: document.getElementById("passwordCancel"),
},
printContainer: document.getElementById("printContainer"),
openFileInput:
typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")
? document.getElementById("fileInput")