mirror of
https://github.com/mozilla-firefox/firefox.git
synced 2026-06-14 20:45:13 -05:00
Register about:pdf as a privileged-about page pointing at the landing page, and add the AboutPDF JSWindowActor pair that bridges the sandboxed content to chrome. The parent validates a dropped/picked file (file scheme, .pdf extension, existence and %PDF- header) before navigating the top browsing context to it, and, on Windows, exposes whether Firefox can be set as the default PDF handler and performs that change. Allow the page to call the RPM helpers it needs and to read/write the promo dismissal pref. Differential Revision: https://phabricator.services.mozilla.com/D303421