Closed Bug 1722707 Opened 4 years ago Closed 2 years ago

Newly downloaded files by Firefox don't show up in macOS "Recents" category

Categories

(Core :: Widget: Cocoa, enhancement, P3)

Firefox 90
enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: vadim.peretokin, Assigned: KrisWright)

Details

(Whiteboard: [mac:integration])

Attachments

(1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0

Steps to reproduce:

Downloaded a file with Firefox - a calendar .ics in this case. Expected it to show up in macOS under recents, but it did not.

It would really help convenience if newly downloaded files did show up under recents.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Cocoa' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Widget: Cocoa
Product: Firefox → Core
Severity: -- → S3
Priority: -- → P3
Whiteboard: [mac:integration]

Able to reproce this on MacOS Sonoma.

Status: UNCONFIRMED → NEW
Ever confirmed: true

We already do this on Windows so this needed to be added to our mac file utils to match the behavior.

Assignee: nobody → kwright
Status: NEW → ASSIGNED

I looked into this further and noted a few things:

  • The way Recents works by default in Finder is that it completes a query for recently opened items. To add ourselves automatically to the list, we'd have to update kMDItemLastUsedDate which updates when LaunchManager opens a file. I'm not sure we want this behavior, as it would require automatically opening downloaded files.
    • This would create a new problem - all of our downloads would have a "last opened" date instead of a file creation date.
  • Safari does not add files to Recents.
  • These special queries are modifiable in MacOS, so the best way to get downloads to appear on one's device is to create a custom version of Recents.

As for the patch I originally put up - this might be useful in the specific use-case of opening files internally with Firefox, but I'm not sure if we need it or not. Regardless, I decided to put it up for review. This bug may need to be resolved as wontfix, as we can't change the OS behavior.

Attachment #9361275 - Attachment description: WIP: Bug 1722707 - Add downloads to recents on MacOS. → Bug 1722707 - Add downloads to recents on MacOS.
Keywords: leave-open
Attachment #9361275 - Attachment is obsolete: true

Until some time in which MacOS has parity to Windows in 'Recents' folder management, this bug is not fixable. The folder itself is a query for opened items. This is managed through MacOS' LaunchServices which cannot be changed without triggering an open on the document. As we don't want to issue a false 'last opened' date and we don't want to automatically open downloaded items, we cannot currently modify the default Recents query solely to suit the platform.

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

Attachment

General

Created:
Updated:
Size: