mozilla/pdf.js — pull request #3934 by Snuffleupagus (2013-11-18 17:26:14+00:00)
Title: [PDFHistory] Fix "Warning: Unhandled rejection: [Exception... "The operation is insecure."" when opening local file

Using Firefox to open a __local PDF file__ (e.g. by drag and drop, or using the "Open File" menu entry), the fallback bar is displayed and the console contains the following message:
`"Warning: Unhandled rejection: [Exception... "The operation is insecure." code: "18" nsresult: "0x80530012 (SecurityError)" location: ""]"`

Apparently, providing the third optional parameter to `window.history.pushState/replaceState` fails when opening a __local PDF file__ in Firefox.

This regressed in PR #3582. Since providing the third parameter isn't necessary in Firefox, the simplest solution seemed to be to add preprocessor tags to work around this this bug.