Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356741 - In the SWT browser, links to pdf/non-html file always attempt to open inline.
Summary: In the SWT browser, links to pdf/non-html file always attempt to open inline.
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-05 12:11 EDT by kris Jacobs CLA
Modified: 2020-05-29 16:04 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kris Jacobs CLA 2011-09-05 12:11:11 EDT
Build Identifier: M20110210-1200

If using the SWT browser, when linking to a file with the following headers:

Array (
    [0] => Content-Length: 417229
    [1] => Content-type: application/pdf
    [2] => Content-Disposition: attachment;filename="XK-1-Product-Brief(1).pdf"
)

the content disposition type attachment is always treated as having type inline. For example, using a pdf file, on windows (IE) and linux (firefox) the user is presented the browser dialog that allows a choice to download the file or launch acrobat. However, for mac (safari) the user is forced to view the file inline. Also, for zip files, clicking on a link causes nothing to happen.

Reproducible: Always

Steps to Reproduce:
1. Open the browser widget.
2. Browse to http://www.xmos.com/mac-bug
3. Click on the pdf/zip download links
Comment 1 Lakshmi P Shanmugam CLA 2012-07-18 05:44:10 EDT
I tried this with eclipse 3.8/4.2. 
When I click on the link to the zip file, a file download dialog opens and lets me save the file. 
Clicking on the link to pdf, opens the file inline. But this is exactly the same behavior as Safari. I can download the file by right click and selecting "download linked file". I'm not sure if we should change this default behavior for the SWT Browser.
Comment 2 Eclipse Genie CLA 2020-05-29 16:04:38 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.