mozilla/pdf.js — pull request #3582 by Rob--W (2013-08-16 15:41:56+00:00)
Title: Set URL in history.replaceState/pushState

When `` is present, `history.replaceState` and `history.pushState` behave inconsistent with relative URLs - see https://code.google.com/p/chromium/issues/detail?id=274024

Contrary to what one expect, omitting the third argument, or using '' as the URL parameter for `replaceState`/`pushState` does not associate the currently active URL with the history entry, but a path relative to ``.

To fix the issue, explicitly associate the current active URL with the history's state.

Note: Chrome does currently not use ``, but I'm working on an improved version of the Chrome extension that uses this tag. Among the features of the new Chrome extension is the support for POST requests. I'm tracking the progress separately at https://github.com/Rob--W/pdf.js/issues/1, because I haven't submit a PR yet (use of the private API requires feedback from the Chromium project).