Open Bug 977006 Opened 10 years ago Updated 2 years ago

Shows blank PDF when file is hosted in a directory protected by NTLM

Categories

(Firefox :: PDF Viewer, defect, P3)

27 Branch
x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: nicolas.girardet, Unassigned)

Details

(Whiteboard: [pdfjs-integration])

Attachments

(1 file)

Attached image console log screenshot
When I load a PDF hosted in a directory protected by NTLM authentication, PDF.js shows a blank screen.
After a bit of investigation, it appears that Firefox receives a 401 response and, I am assuming this kind of authentication is not implemented in PDF.js.

However, after refreshing the page by pressing Ctrl+R at least 3 to 4 times, the authentication dialog appears and, once filled with correct credentials, the PDF file is loaded and displayed.

The issue is reproducible each time I restart the browser.
Can you try disabling range requests to see if it works (add #disableRange=true to the url)?
Flags: needinfo?(nicolas.girardet)
Whiteboard: [pdfjs-c-integration]
Priority: -- → P3
(In reply to Brendan Dahl [:bdahl] from comment #1)
> Can you try disabling range requests to see if it works (add
> #disableRange=true to the url)?

Sorry for the delay, I was on holiday.

It works fine when I add #disableRange=true to the URL.
Flags: needinfo?(nicolas.girardet)
Whiteboard: [pdfjs-c-integration] → [pdfjs-integration]
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: