Testing browser.download.open_pdf_attachments_inline

Settings for Test

  1. In about:preferences, set the handler for Portable Document Format (PDF) to "Open in Firefox" (default setting)
  2. In about:config, set browser.download.open_pdf_attachments_inline to true (modified setting)

Test Links

  1. Server does not dictate Content-Disposition + target attribute - Inline Disposition – opens in a new tab due to target attribute
  2. Server sends Content-Disposition: attachment - Attachment Disposition – opens in a new tab due to Fx101 download handling
  3. 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).