Closed Bug 289243 Opened 20 years ago Closed 19 years ago

Camino should handle .ftploc files.

Categories

(Camino Graveyard :: Drag & Drop, enhancement)

PowerPC
macOS
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.5

People

(Reporter: moz, Assigned: moz)

References

Details

(Keywords: fixed1.8.1)

Attachments

(1 file, 5 obsolete files)

Since camino can open ftp:// URLs, it should also be able to handle .ftploc
files (created when an ftp:// URL is dragged to the Finder). These are exactly
the same format as .webloc files aside from the extension and type code, so I'll
make this go.

We might also consider attempting to open .inetloc (generic internet location)
files, but that's probably not as necessary since we don't handle anything that
would fall under that extension (except maybe Gopher, I suppose), so I'll just
make a patch for .ftploc.
Okay, this will allow Camino to handle .ftploc files everywhere it can already
handle .webloc files. I changed the following things:

- Changed +[MainController urlStringFromWebloc:] to +[MainController
urlStringFromInetloc:] because of it's broader usage.
- Added @"ftploc" to the open dialog's accepted types.
- Added "ftploc" to the accepted extensions, and "ilft" and "LINK" (the type
code for IE's .url files) to the accepted type codes in the two application
"Info.plist"s.

I'm not going to ask for r/sr yet because I'm considering tackling some of
Smokey's comments in bug 188043 as well. Comments desired though, of course.
Comment on attachment 179820 [details] [diff] [review]
Patch to handle ftploc + a little cleanup.

Simon, care to look at this for 1.0?
Attachment #179820 - Flags: review?(sfraser_bugs)
For now targeting for 1.1.
Target Milestone: --- → Camino1.1
I have to make a new patch if the FSSpec patch gets in, anyway.
(In reply to comment #4)
> I have to make a new patch if the FSSpec patch gets in, anyway.
> 

And it's in. Can you whip up another patch?
Attachment #179820 - Flags: review?(sfraser_bugs)
Attachment #179820 - Attachment is obsolete: true
This patch is the same as the former, but also checks files' HFS type codes for 'ilht', 'ilft', and 'LINK' to hopefully fix bug 188043.
Attachment #218895 - Attachment is obsolete: true
Oops; I forgot to fix a variable name.
Attachment #218897 - Attachment is obsolete: true
Comment on attachment 218901 [details] [diff] [review]
HFS-code checking version with fixed variable name.

This works great for all manners of drag-drop for the problematic weblocs in bug 188043, but it strips the protocol and server from *all* weblocs/ftplocs when using the Open File dialogue.
Yeah, I think I've found the issue there; will post a new patch on the morrow. (Opening .weblocs via the open panel is broken in 1.0 too, at least for me.)
This fixes the broken path stuff, and adds .css/.js to the open filter and Info.plists as well (per Smokey's request).
Attachment #218900 - Attachment is obsolete: true
Attachment #218901 - Attachment is obsolete: true
Comment on attachment 219071 [details] [diff] [review]
Version 3; with type codes and .js/.css added to the open filter/Info.plists.

I tested this version with my problematic weblocs from  bug 188043, as well as with other weblocs and ftplocs, and they now all work properly via drag-drop and Open File dialogue.  FWIW, r=me
Comment on attachment 219071 [details] [diff] [review]
Version 3; with type codes and .js/.css added to the open filter/Info.plists.

r=me, for whatever that's worth.
Attachment #219071 - Flags: review+
Attachment #219071 - Flags: superreview?(mark)
Comment on attachment 219071 [details] [diff] [review]
Version 3; with type codes and .js/.css added to the open filter/Info.plists.

Do we really want .js and .css?
Comment on attachment 219071 [details] [diff] [review]
Version 3; with type codes and .js/.css added to the open filter/Info.plists.

(In reply to comment #15)
> (From update of attachment 219071 [details] [diff] [review] [edit])
> Do we really want .js and .css?
> 

The Fox has them already, we can read them, and having them makes life easier on folks who do web dev in Camino.

I've not heard an equally- or more-compelling argument for not including them, "so why not" given the advantages, simplicity, and apparent lack of cost :)
Comment on attachment 219071 [details] [diff] [review]
Version 3; with type codes and .js/.css added to the open filter/Info.plists.

Time to exercise the line-item veto.  sr+ on this patch less the js and css change, and we can open a new bug to argue about that behavior.
Attachment #219071 - Flags: superreview?(mark) → superreview+
Checked in on trunk and branch, with the css/js thing removed.

Wevah, wanna just double-check bonsai that I got it all right? Thanks.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: