[CRX] Add Referer request header if needed

This patch adds the Referer request header to PDF requests if
the original PDF request included the Referer header.
This commit is contained in:
Rob Wu 2015-03-10 15:22:32 +01:00
parent d95b4e475e
commit adb2f8ae21
6 changed files with 223 additions and 3 deletions

View file

@ -795,8 +795,8 @@ var PDFViewerApplication = {
if (!PDFJS.disableHistory && !self.isViewerEmbedded) {
// The browsing history is only enabled when the viewer is standalone,
// i.e. not when it is embedded in a web page.
if (!self.preferenceShowPreviousViewOnLoad && window.history.state) {
window.history.replaceState(null, '');
if (!self.preferenceShowPreviousViewOnLoad) {
PDFHistory.clearHistoryState();
}
self.pdfHistory.initialize(self.documentFingerprint);