Debian Codegraph @

cleaners/firefox.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 SPDX-License-Identifier: GPL-3.0-or-later
5 Copyright (c) 2008-2026 Andrew Ziem.
6
7 This work is licensed under the terms of the GNU GPL, version 3 or
8 later. See the COPYING file in the top-level directory.
9
10 -->
11 <cleaner id="firefox">
12 <label>Firefox</label>
13 <description>Web browser</description>
14 <running type="exe" os="unix" same_user="true">firefox</running>
15 <running type="exe" os="unix" same_user="true">firefox-bin</running>
16 <running type="exe" os="windows" same_user="true">firefox.exe</running>
17 <running type="exe" os="macos" same_user="true">firefox</running>
18 <running type="pathname">~/.mozilla/firefox/*.default/lock</running>
19 <running type="pathname">~/snap/firefox/common/.mozilla/firefox/*.default/lock</running>
20 <running type="pathname">~/.var/app/org.mozilla.firefox/.mozilla/firefox/*.default*/lock</running>
21 <var name="base">
22 <value os="windows">%AppData%\Mozilla\Firefox</value>
23 <value os="macos">~/Library/Application Support/Firefox</value>
24 <value os="unix">~/.mozilla/firefox</value>
25 <value os="unix">~/.config/mozilla/firefox</value>
26 <value os="linux">~/snap/firefox/common/.mozilla/firefox</value>
27 <value os="linux">~/.var/app/org.mozilla.firefox/.mozilla/firefox</value>
28 </var>
29 <var name="profile">
30 <value search="glob" os="windows">%AppData%\Mozilla\Firefox\Profiles\*</value>
31 <value search="glob" os="macos">~/Library/Application Support/Firefox/Profiles/*</value>
32 <value search="glob" os="unix">~/.mozilla/firefox/*</value>
33 <value search="glob" os="unix">~/.config/mozilla/firefox/*</value>
34 <value search="glob" os="linux">~/snap/firefox/common/.mozilla/firefox/*</value>
35 <value search="glob" os="linux">~/.var/app/org.mozilla.firefox/.mozilla/firefox/*</value>
36 </var>
37 <option id="backup">
38 <label>Backup files</label>
39 <description>Delete the backup files</description>
40 <action command="delete" search="glob" path="$$profile$$/bookmarkbackups/*.json"/>
41 <action command="delete" search="glob" path="$$profile$$/bookmarkbackups/*.jsonlz4"/>
42 </option>
43 <option id="cache">
44 <label>Cache</label>
45 <description>Delete the cache</description>
46 <!--
47 This Linux path is whitelisted under the System - Cache cleaner, so it is not
48 redundant. Also, this Linux path contains the cache2 and OfflineCache directories.
49 -->
50 <action command="delete" search="walk.all" path="~/.cache/mozilla/"/>
51 <action command="delete" search="walk.all" path="~/snap/firefox/common/.cache/"/>
52 <action command="delete" search="walk.all" path="~/.var/app/org.mozilla.firefox/cache/mozilla/"/>
53 <action command="delete" search="walk.all" path="~/Library/Caches/Firefox/Profiles/*/" os="macos"/>
54 <action command="delete" search="walk.all" path="%LocalAppData%\Mozilla\Firefox\Profiles\*\cache2"/>
55 <action command="delete" search="walk.all" path="%LocalAppData%\Mozilla\Firefox\Profiles\*\jumpListCache"/>
56 <action command="delete" search="walk.all" path="%LocalAppData%\Mozilla\Firefox\Profiles\*\OfflineCache"/>
57 <!--
58 This file no longer exists in Firefox <=62
59
60 Necko Predictive Network Actions
61 https://wiki.mozilla.org/Privacy/Reviews/Necko
62 -->
63 <action command="delete" search="file" path="$$profile$$/netpredictions.sqlite"/>
64 </option>
65 <option id="cookies">
66 <label>Cookies</label>
67 <description>Delete cookies, which store login information, website preferences, and tracking identifiers</description>
68 <action command="delete" search="file" path="$$profile$$/cookies.txt"/>
69 <action command="cookie" search="file" path="$$profile$$/cookies.sqlite"/>
70 </option>
71 <option id="crash_reports">
72 <label>Crash reports</label>
73 <description>Delete the files</description>
74 <action command="delete" search="walk.all" path="$$base$$/Crash Reports/"/>
75 <action command="delete" search="glob" path="$$profile$$/minidumps/*.dmp"/>
76 </option>
77 <option id="forms">
78 <label>Form history</label>
79 <description>Saved form entries and search bar history</description>
80 <action command="delete" search="file" path="$$profile$$/formhistory.dat"/>
81 <action command="delete" search="file" path="$$profile$$/formhistory.sqlite"/>
82 </option>
83 <option id="passwords">
84 <label>Passwords</label>
85 <description>A database of usernames and passwords as well as a list of sites that should not store passwords</description>
86 <warning>This option will delete your saved passwords.</warning>
87 <!-- http://kb.mozillazine.org/Password_Manager -->
88 <action command="delete" search="file" path="$$profile$$/signons.txt"/>
89 <action command="delete" search="file" path="$$profile$$/signons2.txt"/>
90 <action command="delete" search="file" path="$$profile$$/signons3.txt"/>
91 <action command="delete" search="file" path="$$profile$$/signons.sqlite"/>
92 <action command="delete" search="file" path="$$profile$$/logins.json"/>
93 </option>
94 <option id="session">
95 <label>Session</label>
96 <description>Previously open tabs and windows</description>
97 <!--
98 example names
99 sessionstore.js
100 sessionstore.jsonlz4
101 sessionstore.bak
102 sessionstore.bak-20140715214327
103 sessionstore-1.js
104 upgrade.jsonlz4-20180905220717
105 sessionCheckpoints.json
106 sessionstore-backups/recovery.bak
107 sessionstore-backups/recovery.baklz4
108 sessionstore-backups/recovery.js
109 sessionstore-backups/recovery.jsonlz4
110 -->
111 <action command="delete" search="file" path="$$profile$$/sessionCheckpoints.json"/>
112 <action command="delete" search="glob" path="$$profile$$/sessionstore*.js*"/>
113 <action command="delete" search="glob" path="$$profile$$/sessionstore.bak*"/>
114 <action command="delete" search="glob" path="$$profile$$/sessionstore-backups/previous.js*"/>
115 <action command="delete" search="glob" path="$$profile$$/sessionstore-backups/recovery.js*"/>
116 <action command="delete" search="glob" path="$$profile$$/sessionstore-backups/recovery.bak*"/>
117 <action command="delete" search="file" path="$$profile$$/sessionstore-backups/previous.bak"/>
118 <action command="delete" search="glob" path="$$profile$$/sessionstore-backups/upgrade.js*-20*"/>
119 </option>
120 <option id="site_data">
121 <label>Site data</label>
122 <description>Delete LocalStorage, IndexedDB, and other data stored by websites</description>
123 <action command="delete" search="walk.all" path="$$profile$$/storage/default/http*"/>
124 <action command="delete" search="glob" path="$$profile$$/storage/default/http*"/>
125 <action command="delete" search="file" path="$$profile$$/webappsstore.sqlite"/>
126 <action command="delete" search="file" path="$$profile$$/storage.sqlite"/>
127 </option>
128 <option id="site_preferences">
129 <label>Site preferences</label>
130 <description>Settings for individual sites</description>
131 <action command="delete" search="file" path="$$profile$$/content-prefs.sqlite"/>
132 <action command="delete" search="file" path="$$profile$$/permissions.sqlite"/>
133 </option>
134 <option id="url_history">
135 <label>URL history</label>
136 <description>List of visited web pages</description>
137 <action command="delete" search="file" path="$$profile$$/bounce-tracking-protection.sqlite"/>
138 <action command="delete" search="file" path="$$profile$$/SiteSecurityServiceState.txt"/>
139 <action command="delete" search="file" path="$$profile$$/SiteSecurityServiceState.bin"/>
140 <action command="delete" search="walk.all" path="%LocalAppData%\Mozilla\Firefox\Profiles\*\thumbnails"/>
141 <!-- Firefox versions 1 and 2 -->
142 <action command="delete" search="file" path="$$profile$$/history.dat"/>
143 <action command="delete" search="file" path="$$profile$$/downloads.rdf"/>
144 <!-- Firefox 3 introduced downloads.sqlite and places.sqlite -->
145 <action command="delete" search="file" path="$$profile$$/downloads.sqlite"/>
146 <action command="mozilla.url.history" search="file" path="$$profile$$/places.sqlite"/>
147 <!-- Firefox 78 (or probably some previous version) moved icons from places.sqlite to favicons.sqlite -->
148 <action command="mozilla.favicons" search="file" path="$$profile$$/favicons.sqlite"/>
149 <!-- Firefox 108 has alternative services with visited domains -->
150 <action command="delete" search="file" path="$$profile$$/AlternateServices.txt"/>
151 <!-- Firefox 148 has AlternateServices.bin instead of .txt -->
152 <action command="delete" search="file" path="$$profile$$/AlternateServices.bin"/>
153 </option>
154 <option id="vacuum">
155 <label>Vacuum</label>
156 <description>Clean database fragmentation to reduce space and improve speed without removing any data</description>
157 <action command="sqlite.vacuum" search="glob" path="$$profile$$/*.sqlite"/>
158 </option>
159 </cleaner>