Closed Bug 292878 Opened 20 years ago Closed 19 years ago

Support OS X 10.4 (Tiger) .webloc file format

Categories

(Camino Graveyard :: OS Integration, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.0

People

(Reporter: mozilla, Assigned: moz)

Details

(Keywords: fixed1.8)

Attachments

(1 file, 1 obsolete file)

OS X 10.4 (Tiger) [apparently] uses a different format of webloc files from previous releases of OS X 10.3. Previous releases used the resource fork to store the URL, and the title was just the filename (minus its extension). The new format is a plist file. (Note the developers: the code for reading webloc files is currently being moved around in bug 155484, but won't be solved there, because neither wevah or I yet have Tiger)
Target Milestone: --- → Camino0.9
Me!
Assignee: pinkerton → mozilla
Hmm...it looks like Tiger saves the old-style resource-based info in the file as well. The current code reads it fine.
On second thought, people might accidentally kill the resource fork, so we should check for the plist if the resource isn't found. (And it looks like even 10.2 can open plist-style .inetlocs). I'll submit a patch once the NSURL+Utils.* are checked in.
As our code apparently works as it, this should not be an 0.9 blocker. Would be nice to have though.
Flags: camino0.9-
Target Milestone: Camino0.9 → Camino1.0
Wevah, any progress? Or are you still waiting for the NSURL+Utils.*?
I think this should block simply because we should support Tiger well enough to support it's weblocs. Wevah, can you pop out a quick fix for this?
Flags: camino1.0?
We *do* support Tiger's weblocs. Tiger still saves the resource fork data (last I checked), but it also uses a plist in the data fork. That said, yes I can.
Attached patch Patch that adds plist reading. (obsolete) — Splinter Review
This adds reading of the plist-style internet location data, if the file has no resource fork or lacks the appropriate 'url ' resource.
Attachment #204971 - Flags: review?
Attachment #204971 - Flags: review? → review?(sfraser_bugs)
Comment on attachment 204971 [details] [diff] [review] Patch that adds plist reading. r=me but kill the tabs, please.
Attachment #204971 - Flags: review?(sfraser_bugs) → review+
Oops; I made sure to have my tab settings set up properly, and then I went and copied from a tabbed source file without replacing.
Attachment #204971 - Attachment is obsolete: true
Attachment #204981 - Flags: review?(sfraser_bugs)
Attachment #204981 - Flags: review?(sfraser_bugs) → review+
Fixed everywhere.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Clearing ? request on fixed bug; apologies for bugspam.
Flags: camino1.0?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: