Inline downloads now fail in Firefox 40.0

RESOLVED INCOMPLETE

Status

()

RESOLVED INCOMPLETE
3 years ago
3 years ago

People

(Reporter: sschultz, Unassigned)

Tracking

40 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:40.0) Gecko/20100101 Firefox/40.0
Build ID: 20150807085045

Steps to reproduce:

Am able to reproduce problem in simple servlet:

    	response.setContentType("application/pdf");
	InputStream is = [get input stream that contains byte array to be downloaded]
	byte[] content = Utilities.readFully(is);
	// verify that correct number of bytes are found
	System.out.println("TestServlet.reportTest(): content.length: "+content.length);
	// write out to file to verify that file can be read from file system
	FileUtils.writeByteArrayToFile(new File("someFilePath/ReportTest.pdf"), content);
	response.setContentLength(content.length);
	// attempt to deliver content inline fails
	response.setHeader("Content-Disposition", "inline;filename=" + "ReportTest.pdf");
	// content delivery as attachment succeeds
	//response.setHeader("Content-Disposition", "attachment;filename=" + "ReportTest.pdf");
	OutputStream os = response.getOutputStream();
	 os.write(content);
	 os.flush();
	 os.close();

This code successfully delivers inline content in Chrome and Safari.


Actual results:

see above


Expected results:

see above

Comment 1

3 years ago
could you attach a testcase or give URL to reproduce the issue, please.
Flags: needinfo?(sschultz)
Stephen - thanks for the report.

Do you have anything informative in the browser console during this interaction?
(Reporter)

Comment 3

3 years ago
Nothing helpful.
Flags: needinfo?(sschultz)
Hi
Do you still have this problem? If yes, please attach a test case or give URL to reproduce the issue.
Thank you.
Flags: needinfo?(sschultz)
Hi,
Marking this as Resolved: Incomplete due to the lack of response from the reporter.
Reporter, please feel free to reopen it if you are still having this issue on the latest Firefox version.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Flags: needinfo?(sschultz)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.