Skip to content
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

harden bookmarks functionality: #279

Merged
merged 2 commits into from
Jun 13, 2017
Merged

harden bookmarks functionality: #279

merged 2 commits into from
Jun 13, 2017

Conversation

nodiscc
Copy link
Contributor

@nodiscc nodiscc commented Apr 28, 2017

  • Don't fetch and permanently store bookmarks favicons to $profile_dir/shortcutCache
  • Disable periodic bookmarks backups (default: 15) to disk

 * Don't fetch and permanently store bookmarks favicons to $profile_dir/shortcutCache
 * Disable periodic bookmarks backups (default: 15) to disk
user.js Outdated
@@ -717,6 +717,14 @@ user_pref("browser.helperApps.deleteTempFileOnExit", true);
// https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preference_reference/browser.pagethumbnails.capturing_disabled
user_pref("browser.pagethumbnails.capturing_disabled", true);

// PREF: Don't fetch and permanently store bookmarks favicons to $profile_dir/shortcutCache
// NOTICE: Bookmarks will only be shown with a generic icon
user_pref("browser.shell.shortcutFavicons", false);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some PoC where a phishing google shortcut is put on the desktop.

@Thorin-Oakenpants
Copy link

Thorin-Oakenpants commented May 14, 2017

It's not bookmark shortcuts. It's shortcut icons cached for the system to use with URL shortcuts - eg drag and drop an url to your dekstop.

Bookmark icons are stored in the sql tables

/** FAVICONS ***/
/* 1030: disable favicons in shortcuts
 * URL shortcuts use a cached randomly named .ico file which is stored in your
 * profile/shortcutCache directory. The .ico remains after the shortcut is deleted.
 * If set to false then the shortcuts use a generic Firefox icon ***/
user_pref("browser.shell.shortcutFavicons", false);
/* 1031: disable favicons in tabs and new bookmarks
 * bookmark favicons are stored as data blobs in places.sqlite>moz_favicons ***/
   // user_pref("browser.chrome.site_icons", false);
   // user_pref("browser.chrome.favicons", false);
/* 1032: disable favicons in web notifications ***/
   // user_pref("alerts.showFavicons", false);

@nodiscc
Copy link
Contributor Author

nodiscc commented May 14, 2017

@Thorin-Oakenpants Thanks for the hint, my understanding of this pref was wrong. I will amend the pref description

Is this behavior Windows-specific? When I drag an URL/bookmark to my desktop/file manager (XFCE4/xfdesktop+thunar on Debian) it simply creates a standard Freedesktop .desktop launcher using a generic icon Icon=gnome-fs-bookmark. No $profile_dir/shortcutCache is present.

Then the description should be

// PREF: Don't fetch and permanently store favicons for Windows .URL shortcuts created by drag and drop
// NOTICE: .URL shortcut files will be created with a generic icon
// Favicons are stored as .ico files in $profile_dir\shortcutCache

It would be interesting to know how it behaves on OSX.

@pyllyukko I believe we can safely ignore browser.chrome.site_icons, browser.chrome.favicons since they don't cause useless persistent caching?

@Thorin-Oakenpants
Copy link

Thorin-Oakenpants commented May 14, 2017

The other inactive prefs in the code sample above we left in for informational purposes (some people don't like favicons). The alerts I'm not sure on. There's no real damage having randomly named icons cached (there's no info in them), but it breaks that persistent storage and crosses the browser/os line. It also never cleans itself AFAIK. I had several hundred wiki (and some other site icons) in mine covering about 2 years (I always add a wikipedia link to the root folders of tv shows in my media drives). I guess if someone ever got onto my pc they could infer I had been to wikipedia based on the icon image - big deal, they're IN my PC :)

Windows only? Not 100% sure. We're going to go thru all diff between Win/Mac/Nix and do some tagging - see arkenfox/user.js#109 - see erthling's dump here-> https://earthlng.github.io/FFprefs-diffs/Firefox-v53.0.html . Note: browser.shell.shortcutFavicons is not listed in that diff, so at least the pref exists in all flavors - just need to clarify the behavior.

We also discussed and tested in depth favicons - see arkenfox/user.js#48 and also mentioned/covered/more-tests in arkenfox/user.js#51

OSX - our MAC man is @grauenwolfe who is a collaborator at ghacks - just throw him a comment

@Thorin-Oakenpants
Copy link

Oh, one thing I didn't think of, and I'm not sure - but fav icons can be specified - eg cross domain. This is a definite possible tracking mechanism, and of the top of my head I am not sure if uMatrix, uBo covers these?

@Atavic
Copy link

Atavic commented May 15, 2017

uMatrix Log lists them as images:
03:08:18 image https://s2.googleusercontent.com/s2/favicons

@nodiscc
Copy link
Contributor Author

nodiscc commented Jun 12, 2017

@pyllyukko Should it be merged? Or should I move these 2 prefs to ignore.list? Thanks

@pyllyukko pyllyukko merged commit 53a6193 into pyllyukko:master Jun 13, 2017
@nodiscc nodiscc deleted the improve-bookmarks branch February 21, 2018 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants