question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Privacy.sanitize.sanitizeOnShutdown mozilla bug ?

See original GitHub issue

in privafox “privacy.sanitize.sanitizeOnShutdown” is defaulted to true…

when the config file is used normally with pref("privacy.sanitize.sanitizeOnShutdown", true); the setting is not applied

when used with mozilla.cfg the setting is enforced BUT its value is string type even if it’s set true without quotes… (but the setting work even if its a wrong var)

to be able to default this settings the used value is string so pref("privacy.sanitize.sanitizeOnShutdown", "true"); it works but the side effect is this option can not be disabled in the ffox settings anymore and the gui show a wrong value.

in short this seems to be a ffox bug where this value is incorrectly set to string instead of bool.

This could affect ghacks too where the setting is just ignored… when set without quotes which is the case.

Any way temporary solution is set with quotes

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
intikacommented, Dec 17, 2018

Yes i did checked also in ghack script and found it working it’s why i did not report it back… Indeed i encountered about 4 or 5 similar cases while enforcing/defaulting settings in the cfg file… it’s one of the reason v2 is delayed… but i figure it our finally 😃

1reaction
Thorin-Oakenpantscommented, Dec 16, 2018

This could affect ghacks too where the setting is just ignored

Nope. It works as advertised from a user.js. I just tested in a nilla FF65. I did change to custom settings in Options>Privacy & Security>History>Firefox will use <custom settings> so I could see the “clear history when firefox closes” was unchecked.

Added the following user.js

/* TEST ***/
user_pref("_user.js.parrot", "START: Oh yes, the Norwegian Blue... what's wrong with it?");

/* 2802: enable Firefox to clear history items on shutdown
 * [SETTING] Privacy & Security>History>Custom Settings>Clear history when Firefox closes ***/
user_pref("privacy.sanitize.sanitizeOnShutdown", true);

/* END: internal custom pref to test for syntax errors ***/
user_pref("_user.js.parrot", "SUCCESS: No no he's not dead, he's, he's restin'!");

Closed and reopened FF, and the value true was applied in about:config (and in prefs.js), and the parrot worked as expected. In options, the setting “Clear history when Firefox closes” was now checked.

The issue must lie with cfg. It’s not the first pref I’ve heard of that has issues there, but not in user.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

privacy.sanitize.sanitizeOnShutdown and network.cookie ...
Problem 1: When you open Firefox, the start page isn't shown ([[default:https://start.fedoraproject.org/]] ). You only see a blank page. Problem ...
Read more >
privacy.sanitize.sanitizeOnShutdown - ADMX Help
Registry Hive, HKEY_LOCAL_MACHINE. Registry Path, Software\Policies\Mozilla\lockPref. Value Name, privacy.sanitize.sanitizeOnShutdown. Value Type, REG_DWORD.
Read more >
Mozilla Firefox Tips and Tricks - LegRoom.net
Mozilla Firefox is a fast, easy, and powerful web browser, brought to us by the ... and Ajax debugger for Firefox, including an...
Read more >
privacy.clearOnShutdown.cache; released true disk cache.
If both "privacy.sanitize.sanitizeOnShutdown" & "privacy.clearOnShutdown.cache" can be found on the disc of the 'true' Firefox 12 cache does not work. ".
Read more >
What is the default Firefox Windows Size? - Mozilla Support
8 replies; 1 has this problem; 796 views; Last reply by cor-el. 11 months ago ... sanitizeOnShutdown", true); defaultPref("privacy.sanitize.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found