mozilla/pdf.js — Issue #1219: document.contentType should return application/pdf
Author: simonster
Created: 2012-02-15 07:49:26+00:00
State: open

This is unlikely to affect anyone but extension developers, but document.contentType returns "text/html" when viewing a page with pdf.js. Our Firefox extension relied on the value of this property determine how to save pages, so we had to make a pdf.js-specific hack to make it work. document.contentType is accurate for content handled natively (e.g., images) and for content handled by plugins, so there some expectation that it should work for pdf.js.