Testing browser.download.open_pdf_attachments_inline
Settings for Test
- In about:preferences, set the handler for Portable Document Format (PDF) to "Open in Firefox" (default setting)
- In about:config, set browser.download.open_pdf_attachments_inline to true (modified setting)
Test Links
- Server does not dictate Content-Disposition + target attribute - Inline Disposition – opens in a new tab due to target attribute
- Server sends Content-Disposition: attachment - Attachment Disposition – opens in a new tab due to Fx101 download handling
- Server sends Content-Disposition: attachment + target attribute - Attachment Disposition – opens in a new tab
Observations
In case (A), natively inline, when I navigate forward from the PDF using a link or bookmark, I can navigate Back to the PDF using tab history.
In case (B), download overridden to inline, when I navigate forward from the PDF using a link or bookmark, I cannot navigate Back to the PDF using tab history.
In case (C), download overridden to inline in a link targeted to a new tab,when I navigate forward from the PDF using a link or bookmark, the download is listed on the Back button tab history, but it launches in a new tab. The new tab behaves like case (B).