-
-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Firefox "Clear browsing history and cache" also removes all bookmarks #273
Comments
This is too bad. I had this kind of data loss before and it's really frustrating. I don't understand how this script could survive for years without this side-effect being detected.. Thank you for the report. I plan to do like this:
|
Thanks, I didn't know the documentation was already mentioning this for the Linux variant. But it doesn't seem like it handles it any different, though. If you really want to provide this properly, it would need SQL queries (on Windows e.g. with https://sqldocs.org/sqlite/sqlite-with-powershell/). Otherwise, my personal belief is that it would be better to not provide this option at all, instead of having it "half-assed" and potentially user data destroying. Even if it is documented, like for the Linux implementation. There are lots of other tools that do handle this properly, so best to use one of those then. |
I've played around with the implementation on Linux, and it's working alright (see macOS and Linux (most major desktop distributions) come with SQLite and python by default, making life easier. For Windows, as you pointed out, a separate SQLite installation is needed. This discussion PowerShell/PowerShell#6050 provides another option too. So we could install it/run the query/uninstall. So we can edit But on the other side this script should not cause any unexpected data loss without expectation.. So I guess not including it any recommendation pool, and document it properly on title that it deletes bookmarks would be fine. I also plan to add red light icon to unrecommended scripts, green to recommended, yellow to strict in 0.13.0 to highlight that. I don't dictate but provide my opinions so I'm still open to any ideas. |
Yeah it's pretty unfortunate that on Windows there's no native support for sqlite in this case. Other than that, I don't think there's a real solution, though. |
This commit unifies some of the logic, documentation and naming for Firefox clean-up with improvements on both Linux and Windows platforms. Windows: - 'Clear browsing history and cache': - Not recommend. - Align script name and logic with Linux implementation. - New documentation and not including the script in recommendation provides safety against unintended data loss as discussed in #273. - 'Clear Firefox user profiles, settings, and data': - Rename to 'Clear all Firefox user information and preferences' for improved clarity. - Add more documentation. Linux: - Replace `DeleteFromFirefoxProfiles` with `DeleteFilesFromFirefoxProfiles`. - Migrate implementation to Python: - Add more user-friendly outputs. - Exclude removing directory itself for additional safety. Both Linux and Windows: - Improve documentation for: - 'Clear Firefox user profiles, settings, and data' - 'Clear Firefox history'
Fixed and released in 0.12.6 🚀 I know that this is not the ideal solution we want, but it's better documented/safer implemented and not recommended anymore. |
Good improvement nonetheless. Thanks! |
Description
"Clear Firefox history" ->"Clear browsing history and cache" simply removes all but a few SQLite database files from the profile, among which is
places.sqlite
, which does indeed contain the profile history (e.g. visited pages and input history).It also contains, however, all the user's bookmarks (table
moz_bookmarks
)!As such, the option currently removes all bookmarks without notifying the user of this.
OS
Win10 x64, Win11 x64 (not very relevant).
Firefox 115 ESR.
Reproduction steps
Scripts
Solution
The only way to properly handle this is by doing some SQL queries to only clear the tables that save history entries.
The text was updated successfully, but these errors were encountered: