Closed Bug 1102552 Opened 10 years ago Closed 10 years ago

[e10s] PDF files download rather than displaying in built-in PDF Viewer

Categories

(Firefox :: PDF Viewer, defect)

36 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
e10s + ---

People

(Reporter: rbarnes, Unassigned)

References

Details

(Whiteboard: [pdfjs-c-integration])

In Nightly 36.0a1 (2014-11-20), e10s appears to break PDF viewing.

STR:
1. Load a PDF that is supposed to display in the browser window, e.g., http://www.mathies.com/mozilla/pdf-test.pdf
2. Note that PDF document downloads rather than displaying

Expected: PDF should display in Firefox.
tracking-e10s: --- → ?
Are you able to reproduce with clean a clean profile?
Flags: needinfo?(rlb)
No, this does not reproduce in a clean profile.  However, I'm not sure what about my profile would cause this sort of behavior.  Under Preferences > Applications, the setting for PDF is still "Preview in Nightly".
Flags: needinfo?(rlb)
(In reply to Richard Barnes [:rbarnes] from comment #2)
> No, this does not reproduce in a clean profile.  However, I'm not sure what
> about my profile would cause this sort of behavior.  Under Preferences >
> Applications, the setting for PDF is still "Preview in Nightly".

You can try disabling the addons and extensions to see which one is causing the issue.
Blocks: e10s-addons
Summary: PDF files download rather than displaying → [e10s] PDF files download rather than displaying in built-in PDF Viewer
Richard, was you able to find out what (addon?) causes PDF to be downloaded instead of viewed?
Flags: needinfo?(rlb)
Whiteboard: [pdfjs-c-integration]
Yury: I think the problem is related to the "PDF Viewer 1.0.277" extension on AMO, not the PDF.js version bundled with Nightly 37: https://addons.mozilla.org/en-US/firefox/addon/pdfjs/

I have my Preferences > Applications set to PDF "Preview in Nightly", but when I click a pdf link (in this case the "Patterson’s technical paper reads a bit like a manifesto" link on http://www.eejournal.com/archives/articles/20141210-risc-v ), Nightly opens an empty new tab, downloads the pdf, and opens in in OS X's Preview.app.

When I click a pdf link in an e10s window, I see the following error message in the browser console:

> NS_ERROR_NOT_AVAILABLE: Async version must be used. nsHelperAppDlg.js:209:0

When I click a pdf link in a non-e10s window, I see the following error messages in the browser console:

> undefined events.js:79
> Error: operation not possible on dead CPOW <unknown>
> undefined events.js:79
> ReferenceError: PdfJsTelemetry is not defined PdfStreamConverter.jsm:903:4
> Error: operation not possible on dead CPOW <unknown>
PDF.js extension and builtin PDF viewer are different products, and have two different release cycles. Currently PDF extension is not updated often. It's recommended to uninstall the extension, especially for non-release Firefox versions.
The AMO version of the PDF.js extension was marked as incompatible with Firefox 35+ and was also downgraded to experimental. Closing bug as resolved.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(rlb)
Resolution: --- → INVALID
I have this same issue, no addons installed, in Nightly 38. The bug is still happening for me exactly as rbarnes described. 

To be explicit: .pdf's open in a non-e10s window using pdf.js as built-in to the browser (no addon) just fine. In e10s windows, .pdf's simply download. pdf.js is a nifty thing, so I hope we can still use it in e10s. Therefore, I hope this bug is not ignored.

Thanks for your consideration.
You need to log in before you can comment on or make changes to this bug.