News for hackers. Stuff that matters.
Re:Firefox about:config Menu Shortcut by sf_rob on Tuesday January 25, 2022 @08:26AM (#30071507)
I think the about:config utility I want is something that keeps track of manually altered preferences. Ideally something like userChrome.css where I can simply override/extend behavior. This is probably already a thing, but it's a bit annoying to not know the origin of non-default prefs.
Re:Firefox about:config Menu Shortcut by contravariant on Tuesday January 25, 2022 @09:40AM (#30072250)
You can set preferences with a user.js file in your profile directory. See for example: https://github.com/pyllyukko/user.js/blob/master/user.js
Re:Firefox about:config Menu Shortcut by brnt on Tuesday January 25, 2022 @02:25PM (#30076705)
Once heard that once you setup your own user.js, Firefox will stop updating default settings, because they might override your settings. Over time that might cause you to not get new features enabled. Is this true?
Re:Firefox about:config Menu Shortcut by contravariant on Tuesday January 25, 2022 @03:42PM (#30077746)
I don't know, but wouldn't that apply to about:config settings in general?
Re:Firefox about:config Menu Shortcut by brnt on Tuesday January 25, 2022 @05:30PM (#30079030)
Afaik it does.
Re:Firefox about:config Menu Shortcut by sf_rob on Tuesday January 25, 2022 @09:53AM (#30072388)
I really like this route. Thanks!
Re:Firefox about:config Menu Shortcut by Lev1a on Tuesday January 25, 2022 @08:37AM (#30071614)
> This is probably already a thing

On about:config to the right of the search bar at the top is a checkbox "Show only modified preferences".

Re:Firefox about:config Menu Shortcut by zamadatix on Tuesday January 25, 2022 @08:51AM (#30071733)
This is well known but does not show manually modified preferences rather ANY modified preferences as the name implies. Even out of the box on a fresh install this results in pages of "modified preferences" that didn't even have a user initiated trigger.
Re:Firefox about:config Menu Shortcut by sf_rob on Tuesday January 25, 2022 @08:52AM (#30071750)
This shows also shows preferences modified in indirect ways such as about:preferences, devtools, etc. Helpful to filter a list of potentially manually toggled prefs, but not a 1:1 filter.
Re:Firefox about:config Menu Shortcut by acdha on Tuesday January 25, 2022 @08:43AM (#30071670)
Do you mean something like recording notes for _why_ a preference was changed in addition to the built-in tracking of which preferences have non-default default values?
Re:Firefox about:config Menu Shortcut by zamadatix on Tuesday January 25, 2022 @08:56AM (#30071786)
There is no built in tracking of manual modifications and non-default values is a very different filter in this case.

The notes idea would be interesting though ideally the names of the key and values would be descriptive enough the reasoning for the change is obvious in 95%+ of cases (the other 5% being noting a bug workaround). As is the key names are usually pretty good but some of the opaque enum values could definitely use a note (or text based values instead) e.g. things like TRR mode being set to 2 vs 3 is always a google search.

Re:Firefox about:config Menu Shortcut by acdha on Tuesday January 25, 2022 @09:15AM (#30071990)
> There is no built in tracking of manual modifications and non-default values is a very different filter in this case.

What are you looking for which the “show only modified preferences” button doesn't provide?

Re:Firefox about:config Menu Shortcut by capitainenemo on Tuesday January 25, 2022 @10:16AM (#30072693)
I'm going to pipe up here 'cause this has bothered me a lot too. $ grep user_pref prefs.js | wc -l 230

In this profile I have 230 modified preferences. I'm pretty sure scanning the list in "show only modified" that it is all of those. The vast majority were autoset by Firefox or Firefox extensions.

What I would love to find is prefs that I explicitly set manually in about:config. Those are the ones I realllly wanna find later if I messed something up. It would also be nice to have those explicitly set by a user action in Settings too.. Elsewhere contravariant mentioned "user.js" I'll look into that and it'll be super helpful on the desktop. Less so on Android where, thankfully, about:config is still accessible in the F-Droid Fennec firefox build (unfortunately they can't do anything about all my useful addons that were removed or removal of prior functionality but I'll take what I can get).

Re:Firefox about:config Menu Shortcut by zamadatix on Tuesday January 25, 2022 @11:32AM (#30073849)
> What are you looking for which the “show only modified preferences” button doesn't provide?

Things handful of things I the user have actually set to be a certain value not the hundreds of things that are not the initial value the instant you launch the browser for the first time or the hundreds more that change from normal use after that. Just the 3 or 4 I have actually changed.

Re:Firefox about:config Menu Shortcut by amelius on Tuesday January 25, 2022 @09:40AM (#30072248)
Sometimes Firefox takes a lot of CPU power. Then I go to the about:performance tab, and kill some or even all of the tabs sometimes, but Firefox keeps consuming CPU power. What is going on?
Re:Firefox about:config Menu Shortcut by dblohm7 on Tuesday January 25, 2022 @10:50AM (#30073149)
Re:Firefox about:config Menu Shortcut by donclark on Tuesday January 25, 2022 @10:58AM (#30073256)
If that happens, I typically will close Firefox and take a short break. Sometimes I will shut down my machine as well. Either way, its a win-win for me, my machine and Firefox. Everything seems better after that short break.
Re:Firefox about:config Menu Shortcut by throwawayciv651 on Tuesday January 25, 2022 @10:34AM (#30072929)
what's your firefox version and OS name and version?
Re:Firefox about:config Menu Shortcut by amelius on Tuesday January 25, 2022 @11:00AM (#30073301)
Firefox 96.0.1 on Ubuntu 18.04
Re:Firefox about:config Menu Shortcut by throwawayciv651 on Tuesday January 25, 2022 @11:19AM (#30073630)
Is this ubuntu.com Ubuntu or flavors like xubuntu, kubuntu, ubuntu-mate etc?
Re:Firefox about:config Menu Shortcut by amelius on Tuesday January 25, 2022 @11:26AM (#30073759)
Pure Ubuntu (no flavor)
Re:Firefox about:config Menu Shortcut by bugmen0t on Tuesday January 25, 2022 @06:56AM (#30070823)
This is a "chrome script" extension, which downgrades some of the built-in Firefox security features. Use at your own risk.
Re:Firefox about:config Menu Shortcut by octoberfranklin on Tuesday January 25, 2022 @07:10AM (#30070912)
"Downgrades built-in Firefox security features" is a gross mischaracterization, bordering on FUD.

Chrome scripts require careful security analysis, just like software that runs with root privileges.

Firefox ships with zillions of lines of chrome script, and none of those zillions of lines "downgrade" any security features. Software isn't automatically secure simply because it came from Mozilla. Microsoft tried the same nonsense to scare people out of using Linux at one point... you'd have to be nuts to run kernel code that didn't come from Redmond!

Re:Firefox about:config Menu Shortcut by bugmen0t on Tuesday January 25, 2022 @07:47AM (#30071169)
There are security checks for detecting userChrome.js. My understanding is that Firefox is going to let people customize as before but just not enable some security enhancements for those users. https://searchfox.org/mozilla-central/rev/02bd3e02b72d431f2c...
Re:Firefox about:config Menu Shortcut by gruez on Tuesday January 25, 2022 @08:00AM (#30071276)
What are the "security enhancements" that those users are missing out on?
Re:Firefox about:config Menu Shortcut by roblabla on Tuesday January 25, 2022 @08:22AM (#30071471)
Essentially, it allows calling eval[1] and executing "privileged loads"[0] in some elevated contexts (the System Principal, which is responsible for the browser UI[2]).

Those are useful mitigations, but disabling them for some custom user-chrome is unlikely to have a meaningful impact on your browser's security.

[0] https://searchfox.org/mozilla-central/source/dom/security/ns...

[1] https://searchfox.org/mozilla-central/source/dom/security/ns...

[2]: https://blog.mozilla.org/attack-and-defense/2020/06/10/under...

Re:Firefox about:config Menu Shortcut by nix0n on Tuesday January 25, 2022 @08:15AM (#30071404)
Re:Firefox about:config Menu Shortcut by bugmen0t on Tuesday January 25, 2022 @08:54AM (#30071769)
As pointed out by sibling-comments, this seems to be in the context of making sandbox escapes harder.
Re:Firefox about:config Menu Shortcut by throwawayciv651 on Tuesday January 25, 2022 @11:59AM (#30074303)
Someone posted downthread to use this instead:

https://github.com/mozilla/policy-templates

It's from Mozilla.

Re:Firefox about:config Menu Shortcut by jmnicolas on Tuesday January 25, 2022 @05:47AM (#30070401)
I see there's an option "Resist fingerprinting", is it working well or fingerprinting is unavoidable nowadays?
Re:Firefox about:config Menu Shortcut by perryizgr8 on Tuesday January 25, 2022 @05:57AM (#30070459)
Usually such "resist" stuff ends up providing more bits to the tracker so they can fingerprint you even better.
Re:Firefox about:config Menu Shortcut by bugmen0t on Tuesday January 25, 2022 @06:55AM (#30070811)
This mode exists to enable the Tor browser's idea of fingerprinting resistance. The reasoning for why it works the way it does is documented in their design document at https://2019.www.torproject.org/projects/torbrowser/design/#....
Re:Firefox about:config Menu Shortcut by easrng on Tuesday January 25, 2022 @10:17AM (#30072704)
I haven't check Firefox's fingerprint resistance but Bromite's is very effective against https://fingerprintjs.com/ at least.
Re:Firefox about:config Menu Shortcut by iqanq on Tuesday January 25, 2022 @06:17AM (#30070575)
Just using Firefox is enough bits :P
Re:Firefox about:config Menu Shortcut by yetanother-1 on Tuesday January 25, 2022 @06:05AM (#30070501)
Can you please elaborate?
Re:Firefox about:config Menu Shortcut by capableweb on Tuesday January 25, 2022 @06:11AM (#30070537)
Using the DNT (Do-Not-Track) header as an example. When you make a request to a service, you're browser can attach this DNT header to signal to the service that you don't want to be tracked. But since services that you're getting responses from can just ignore that (no repercussions for ignoring it really), it becomes another data point they can use to separate you from other users who's headers would be the same as you.
Re:Firefox about:config Menu Shortcut by gruez on Tuesday January 25, 2022 @09:51AM (#30072362)
1. resistfingerprinting (RFP) doesn't affect DNT. it's also not some sort of flag that nicely asks services to stop tracking you.

2. That's not a good analogy. If we're looking at a single choice in isolation, it's true that opting into DNT (or RFP) makes you stick out compared to everyone. There's only two options (DNT header being present or not), and one option is obviously more common than the other. However, the difference with RFP on/off is that there aren't really two options. Yes, RFP can only be on/off, and "on" is much more rare than "off", but leaving it "off" also uniquely identifies your device through fingerprinting. You're not really choosing to blend into the "all the people with RFP on" group vs "all the people with RFP off" group. You're choosing to blend into the "all the people with RFP on" group vs "all the people with RFP off and has the fingerprint as you" group[1]. Whether that's more or less identifiable is unclear. If you have the most run of the mill setup[2], then RFP might indeed make you stick out more compared to your normal setup. However, if you have an uncommon setup, it might make you stick out less, because the amount of RFP users is greater than the amount of users with the same fingerprinting attributes as you.

[1] in reality it's not really one group for RFP users and separate groups for everyone else. There are fingerprinting attributes that RFP doesn't block, so it's more like a set of groups for RFP users, and a separate set of groups for non-RFP users, but there are less distinct elements in the RFP set, since various fingerprinting attributes are spoofed to be the same.

[2] see https://wiki.mozilla.org/Security/Fingerprinting for list of features that are spoofed, and make your own determination how common your setup is.

Re:Firefox about:config Menu Shortcut by perryizgr8 on Tuesday January 25, 2022 @06:12AM (#30070542)
I am not very well-versed in this, but I have read many pieces like this: https://forum.vivaldi.net/topic/52638/to-resist-fingerprinti...

> So in short: your normal browser does not have to be honest about it's properties, but it won't make you more anonymous because you still stand out from the other people and content on the web will break. Tor works because everyone has the same properties, including resolution. You can surely change your resolution, but there is just simply a chance that you will be standing out from other people. It's just safer to keep it the way it is.

If the "resist fingerprinting" feature changes anything in the data that is read by trackers, you will stand out like a sore thumb among the millions of browsers with the default settings.

Re:Firefox about:config Menu Shortcut by tinus_hn on Tuesday January 25, 2022 @07:02AM (#30070860)
Tor Browser also quantizes document width so it’s much less of a fingerprint.
Re:Firefox about:config Menu Shortcut by chaosite on Tuesday January 25, 2022 @06:13AM (#30070551)
You turn on the option. This causes your browser to act in a different, specific way, that can then be detected.

Most people do not change default options, so just turning on that option is something that identifies you.

Re:Firefox about:config Menu Shortcut by TonyTrapp on Tuesday January 25, 2022 @06:13AM (#30070545)
When you are one of the few people that enable this feature, you are part of a smaller group of people. Maybe you are the only person in your own using this feature, so seeing a single client with the "resist fingerprinting" characteristics and correlating that with things that the browser cannot avoid (e.g. IP address mapping), you might now be uniquely identifiable.
Re:Firefox about:config Menu Shortcut by AlexAndScripts on Tuesday January 25, 2022 @06:12AM (#30070541)
By blocking various fingerprint mechanisms you provide the information that you have fingerprint blocking on, which is in itself a data point. Whether that makes it worse to turn it on I don't know - you're removing some data points, but adding more.
Re:Firefox about:config Menu Shortcut by no_time on Tuesday January 25, 2022 @06:40AM (#30070723)
Fingerprinting resistance should be more focused on feeding false information to these algorithms rather than crippling their functionality and thus sticking out from the crowd.

To my knowledge, resistFingerprinting mostly does the latter.

Re:Firefox about:config Menu Shortcut by gruez on Tuesday January 25, 2022 @09:58AM (#30072456)
The problem is that "feeding false information to these algorithms" only really works if the algorithms are naive and don't try to detect whether you're lying. If your "feeding false information" mechanism can be detected, you're still in the same position.
Re:Firefox about:config Menu Shortcut by no_time on Tuesday January 25, 2022 @11:15AM (#30073554)
Now that I think about it more, yeah sadly. Even worse, it could be only effective on a per script or even just a per site basis.
Re:Firefox about:config Menu Shortcut by core-utility on Tuesday January 25, 2022 @08:54AM (#30071764)
I find it gives me more hardship than worth it. Notably, GitLab fails to load the login page with it on.
Re:Firefox about:config Menu Shortcut by geokon on Tuesday January 25, 2022 @07:13AM (#30070931)
Is there something that's the opposite? So the browser doesn't reload resources all the time and shares resources between tabs to give a smaller memory footprint and lower latency? I really couldn't care less if the websites I visit fingerprint me (if I do, then I use a private tab)
Re:Firefox about:config Menu Shortcut by gruez on Tuesday January 25, 2022 @09:31AM (#30072134)
Most of the fingerprinting resistance features aren't cache/performance related. https://wiki.mozilla.org/Security/Fingerprinting
Re:Firefox about:config Menu Shortcut by dblohm7 on Tuesday January 25, 2022 @10:52AM (#30073179)
That pref is intended for Tor Browser. It works in mainline Firefox but is a massive footgun, because it enables a bunch of behaviours that most users aren't anticipating and don't realize are now occurring as a result of enabling that pref.
Re:Firefox about:config Menu Shortcut by account42 on Tuesday January 25, 2022 @10:20AM (#30072734)
One thing it does is tell websites that you want a light color scheme.
Re:Firefox about:config Menu Shortcut by thrdbndndn on Tuesday January 25, 2022 @07:52AM (#30071215)
Wow, you can still use userchrome js nowadays? I thought it has been killed by Firefox long time ago. How exactly do you load it?

The tool I used before [1] https://github.com/satyr/uc hasn't been updated since 2016, and http://userchromejs.mozdev.org/ is entirely gone.

Re:Firefox about:config Menu Shortcut by zamadatix on Tuesday January 25, 2022 @09:12AM (#30071954)
It's quite a rickety process ever since XBL was removed in 72. This repository is usually the preferred base if you're interested though https://github.com/xiaoxiaoflood/firefox-scripts
Re:Firefox about:config Menu Shortcut by gry_gh on Tuesday January 25, 2022 @08:35PM (#30080557)
Yes we can still create uc.js in 2022. MDN no longer serve the XUL doc. However we can search their archived doc repo, e.g. https://github.com/mdn/archived-content/search?q=nsIPrefServ...
Re:Firefox about:config Menu Shortcut by encryptluks2 on Tuesday January 25, 2022 @07:07AM (#30070894)
Usually a much better option to about:config when available is a policy file:

https://github.com/mozilla/policy-templates

Re:Firefox about:config Menu Shortcut by octoberfranklin on Tuesday January 25, 2022 @07:14AM (#30070934)
Yeah but check about:policies carefully every time you edit that file.

If there is even the tiniest syntax error in policies.json, Firefox silently ignores the entire file. The only way to know this happened is by checking about:policies.

Mozilla had to be dragged, kicking and screaming, into providing any kind of stability guarantee for configuration options. "Policies" are just configuration options that have been blessed with this stability guarantee. But Mozilla is still throwing a tantrum over having to provide it...

Re:Firefox about:config Menu Shortcut by dblohm7 on Tuesday January 25, 2022 @10:54AM (#30073205)
> But Mozilla is still throwing a tantrum over having to provide it...

That's funny, I didn't see any tantrums about policies when I worked there. Citation needed.

Re:Firefox about:config Menu Shortcut by MauranKilom on Tuesday January 25, 2022 @11:39AM (#30073941)
The title reminds me of this comic: https://xkcd.com/1678/