Closed
Bug 1195393
Opened 10 years ago
Closed 9 years ago
Inline downloads now fail in Firefox 40.0
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: sschultz, Unassigned)
Details
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
could you attach a testcase or give URL to reproduce the issue, please.
Flags: needinfo?(sschultz)
Comment 2•10 years ago
|
||
Stephen - thanks for the report.
Do you have anything informative in the browser console during this interaction?
Comment 4•9 years ago
|
||
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)
Comment 5•9 years ago
|
||
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
Closed: 9 years ago
Flags: needinfo?(sschultz)
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•