Closed Bug 101830 Opened 23 years ago Closed 23 years ago

Can't use link button on toolbar to create links to files other than html documents

Categories

(SeaMonkey :: Composer, defect)

PowerPC
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: TucsonTester2, Assigned: Brade)

References

Details

(Keywords: platform-parity, Whiteboard: EDITORBASE)

Build ID: 20010924

In composer if you try to link to anything other than an html document using the
"choose file" button in the link properties it is not possible.  This only
happens on the Mac.

Reproducible: Always

Steps to reproduce:
1.Open Composer
2.Click on the link button in the toolbar
3.type in text to represent the link
4.Click on the choose file button and navigate to where you have graphic files.

Actual Results:
In 9.1 you will not be able to see the graphics that are in the folder. In OSX
you will see the pictures but they are greyed out.

Expected Results:
I would expect that it would be possible to link to files other than html
documents.  This is especially needed for linking to graphics or compressed files.
Other file types that would be useful to link to would be:
movies (4.x does this), sounds, executables, document files (i.e. word
processing documents, spreadsheets, databases, pdf files, etc.)
OS: Mac System 8.5 → All
Confirmed using Mac/2001091311 (0.9.4). Graphics files are not visible at all in the poorly-
named "Open HTML File" dialog that results. It appears any file of Type "TEXT" is (HTML, 
CSS, and what have you).
Status: UNCONFIRMED → NEW
Ever confirmed: true
-->brade
Assignee: syd → brade
Keywords: pp
This seems like pretty basic functionality that we should fix.
Status: NEW → ASSIGNED
Whiteboard: EDITORBASE
This works correctly on Windows (and I assume Linux - Akkana?)
Composer code is adding both HTML and Image file extensions by this code:
    fp.appendFilters(nsIFilePicker.filterHTML);
    fp.appendFilters(nsIFilePicker.filterText);

    // Link dialog also allows linking to images
    if (filterType.indexOf("img") > 0)
      fp.appendFilters(nsIFilePicker.filterImages);
so if it doesn't work on Mac, it must be a bug in the Mac-specific nsIFilePicker
code.
Correct, works on linux using the xp file picker.
works for me on OS9;

I think pinkerton fixed this with his fix for #97333
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Depends on: 97333
Resolution: --- → FIXED
Target Milestone: --- → mozilla0.9.7
Tucson/Michael, please re-test and mark VERIFIED if this is fixed..
if not, REOPEN.
Verified on trunk build 2002011803 on OSX.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.