mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Enhance PDF handling by introducing DISPOSITION_FORCE_INLINE and updating content disposition logic
This commit is contained in:
parent
9a60e2c532
commit
257ddfa48d
6 changed files with 63 additions and 7 deletions
|
|
@ -871,6 +871,11 @@ PdfStreamConverter.prototype = {
|
|||
aRequest.setResponseHeader("Refresh", "", false);
|
||||
}
|
||||
|
||||
// The document will be loaded via the stream converter as html, but we
|
||||
// may have come here via a download/attachment path. Force inline so we
|
||||
// don't get redirected back to the external helper service.
|
||||
aRequest.contentDisposition = Ci.nsIChannel.DISPOSITION_FORCE_INLINE;
|
||||
|
||||
// Creating storage for PDF data
|
||||
var contentLength = aRequest.contentLength;
|
||||
this.dataListener = new PdfDataListener(contentLength);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue