ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How can I get the default value of a particular preference programatically. I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.

  • ما من ردود
  • 0 have this problem
more options
Locked by Moderator as a duplicate/re-post. Please continue the discussion in this thread: [tiki-view_forum_thread.php?comments_parentId=702631&forumId=1] Thanks - c

Issue

I have a problem with my bookmarks, cookies, history or settings

Description

How can I get the default value of a particular preference in FireFox?. I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value. I see some that there are values for preferences in firefox.cs but I am not certain that these are being used as the default values for preferences. prefs.js in user's profile only has the updated values and not the default values.

Any help towards acheiving this programtically is greatly appreciated. If the default values are stored in a file, kindly let me know the format in which it is stored for me to parse it programatically.

User Agent

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)