Closed Bug 401744 Opened 17 years ago Closed 4 years ago

[10.5] Opt into having Mac OS X set com.apple.quarantine on files downloaded using Firefox

Categories

(Toolkit :: Downloads API, enhancement)

All
macOS
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1305339

People

(Reporter: raccettura, Unassigned)

Details

(Keywords: sec-want, Whiteboard: [sg:want])

Couldn't find another bug about this... as per arstechnica, looks like the metadata to mark downloads in Leopard is:
com.apple.quarantine

http://arstechnica.com/reviews/os/mac-os-x-10-5.ars/11

Might be a nice little enhancement, though I know some may find it annoying.  Regardless something to at least discuss.
Firefox is likely already opted in; Apple added a bunch of internet apps by default.
is this the same as bug 387248 (or at least part of it) ?
(In reply to comment #2)
> is this the same as bug 387248 (or at least part of it) ?
No

(In reply to comment #1)
> Firefox is likely already opted in; Apple added a bunch of internet apps by
> default.
Might not be a bad idea to support it though since the download manager is technically toolkit (and having netwerk code set it on OS X would be good for embedders as well).
I wonder if support is in the form of a shim (expires after a certain version, just like some stuff did in Vista), or permanent.  Anyone know who has such info (and is willing to say)?
Summary: Utilize Apple's quarantine metadata on downloads → [10.5] Utilize Apple's quarantine metadata on downloads
Firefox is opted in by its bundle ID. Other applications will probably want to set their own Info.plists.

Firefox should too, because less Magic is better.

Set the LSFileQuarantineEnabled key in our Info.plist to be true, and we can close out this bug.

bug 401748 is about using the APIs provided to quarantine adding extra metadata such as where a file came from.
Whiteboard: [sg:want]
Product: Firefox → Toolkit
Bug 401748 sounds like a saner solution.  Not every file created by Firefox wants to be quarantined.
Hardware: PowerPC → All
Summary: [10.5] Utilize Apple's quarantine metadata on downloads → [10.5] Opt into having Mac OS X set com.apple.quarantine on files downloaded using Firefox

Closing as this bug is no longer valid. We use the LSFileQuarantineEnabled key in our Info.plist so that any file Firefox writes has the com.apple.quarantine extended attribute set. In a couple of places, we manually clear the attribute after downloading. For example, downloaded media .dylibs have the attribute manually removed by Firefox to allow them to be loaded (as needed by Catalina.)

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.