Files
sousa-gecko/toolkit/components/pdfjs/jar.mn
T
Benjamin Beurdouche ac5a1c4b2c Bug 1943059 - Wire pdf.js viewer to NSS for signature verification r=nkulatova
Adds the Firefox-only glue around the upcoming pdf.js Digital signature
properties panel. The bundled pdf.js viewer / locale / images that the
panel depends on land via the regular pdfjs-update auto-import; this
revision only carries the pieces that live exclusively in
mozilla-central:

- toolkit/components/pdfjs/content/PdfjsParent.sys.mjs:
  PDFJS:Parent:{verifyPdfSignature,viewPdfCertificate} IPC handlers,
  asyncVerifyPKCS7Object plumbing, leaf-certificate flattening,
  the about:certificate opener, and defence-in-depth argument
  validators (`validateVerifyPdfSignatureArgs`,
  `filterCertsForView`) exported at module scope so xpcshell can
  exercise them without instantiating the JSWindowActor.
- toolkit/components/pdfjs/content/PdfStreamConverter.sys.mjs:
  the matching content-side ChromeActions methods that route
  FirefoxCom.requestAsync("verifyPdfSignature" | "viewPdfCertificate")
  to the parent actor.
- toolkit/components/pdfjs/jar.mn: package signature-properties-*.svg
  so the new row icon ships in omni.ja once the auto-import brings
  the SVG file in.
- toolkit/components/pdfjs/PdfJsOverridePrefs.js:
  pdfjs.enableSignatureVerification default = false. Off by default
  in shipping Firefox; gated by
  security.pdf_signature_verification.enable_test_trust_anchors for
  the test CA path.

Differential Revision: https://phabricator.services.mozilla.com/D299536
2026-07-08 06:53:49 +00:00

50 lines
2.7 KiB
Plaintext

pdfjs.jar:
% resource pdf.js %content/
content/PdfJs.sys.mjs (content/PdfJs.sys.mjs)
content/PdfJsNetwork.sys.mjs (content/PdfJsNetwork.sys.mjs)
content/PdfJsTelemetry.sys.mjs (content/PdfJsTelemetry.sys.mjs)
content/PdfSandbox.sys.mjs (content/PdfSandbox.sys.mjs)
content/PdfStreamConverter.sys.mjs (content/PdfStreamConverter.sys.mjs)
content/build/ (content/build/*)
content/web/cmaps/ (content/web/cmaps/*)
content/web/standard_fonts/ (content/web/standard_fonts/*)
content/web/images/ (content/web/images/annotation-*.svg)
content/web/images/loading-icon.gif (content/web/images/loading-icon.gif)
content/web/wasm/openjpeg.wasm (content/web/wasm/openjpeg.wasm)
content/web/wasm/openjpeg_nowasm_fallback.js (content/web/wasm/openjpeg_nowasm_fallback.js)
content/web/wasm/qcms_bg.wasm (content/web/wasm/qcms_bg.wasm)
content/web/wasm/jbig2.wasm (content/web/wasm/jbig2.wasm)
content/web/wasm/jbig2_nowasm_fallback.js (content/web/wasm/jbig2_nowasm_fallback.js)
content/web/iccs/ (content/web/iccs/*.icc)
#ifdef ANDROID
content/GeckoViewPdfjsParent.sys.mjs (content/GeckoViewPdfjsParent.sys.mjs)
content/GeckoViewPdfjsChild.sys.mjs (content/GeckoViewPdfjsChild.sys.mjs)
content/web/viewer.html (content/web/viewer-geckoview.html)
content/web/viewer.css (content/web/viewer-geckoview.css)
content/web/viewer.mjs (content/web/viewer-geckoview.mjs)
content/web/images/gv-toolbarButton-download.svg (content/web/images/gv-toolbarButton-download.svg)
#else
content/PdfJsAIFeature.sys.mjs (content/PdfJsAIFeature.sys.mjs)
content/PdfjsParent.sys.mjs (content/PdfjsParent.sys.mjs)
content/PdfjsChild.sys.mjs (content/PdfjsChild.sys.mjs)
content/PdfjsContextMenu.sys.mjs (content/PdfjsContextMenu.sys.mjs)
content/web/viewer.html (content/web/viewer.html)
content/web/viewer.css (content/web/viewer.css)
content/web/viewer.mjs (content/web/viewer.mjs)
content/web/debugger.css (content/web/debugger.css)
content/web/debugger.mjs (content/web/debugger.mjs)
content/web/images/checkmark.svg (content/web/images/checkmark.svg)
content/web/images/ (content/web/images/secondaryToolbarButton*.svg)
content/web/images/ (content/web/images/toolbarButton*.svg)
content/web/images/ (content/web/images/treeitem*.svg)
content/web/images/ (content/web/images/cursor*.svg)
content/web/images/ (content/web/images/findbar*.svg)
content/web/images/ (content/web/images/loading*.svg)
content/web/images/ (content/web/images/altText*.svg)
content/web/images/ (content/web/images/editor-toolbar-*.svg)
content/web/images/ (content/web/images/messageBar_*.svg)
content/web/images/ (content/web/images/comment-*.svg)
content/web/images/ (content/web/images/pages_*.svg)
content/web/images/ (content/web/images/signature-properties-*.svg)
#endif