Open Bug 1744396 Opened 3 years ago Updated 3 years ago

Recent file history is saved regardless of GTK settings

Categories

(Core :: Widget: Gtk, defect)

Firefox 94
defect

Tracking

()

UNCONFIRMED

People

(Reporter: btdmaster, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

Steps to reproduce:

Opened a file in the browser with the open file menu (Ctrl-O). Equivalently, dropped a file using it when uploading to a website.

Actual results:

The recent file history was saved (Ctrl-O -> Recent).

Expected results:

The recent file history should not have been saved as ~/.config/gtk-3.0/settings.ini includes the following two lines:
gtk-recent-files-max-age=0
gtk-recent-files-limit=0
The browser should have respected these settings. So far, the only workaround is to make .local/share/recently-used.xbel owned by root which is not a very practical solution (any time anything else was done to the file (e.g. symlink to /dev/null) Firefox recreated it with open permissions).
I have attempted to find the section in the source that is the issue, however the closest I could find is toolkit/components/downloads/DownloadPlatform.cpp.

The Bugbug bot thinks this bug should belong to the 'Firefox::Bookmarks & History' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Bookmarks & History
Component: Bookmarks & History → Widget: Gtk
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.