javascriptfirefoxpreferencesmozilla

read "about config" prefrences of mozilla firefox using javascript


I want to know that how can I read the about:config preferences of Mozilla Firefox ? Please note that I do not want to change its value, I only want to read them.

I've already gone through about-config-preferences-and-js

but I end up following error. RefrenceError: getPrefs is not defined.

Will anyone help to get me out from this?


Solution

  • I don't think it is possible as a security measure

    If the browser configuration is exposed to client code like javascript then it could modify the setting to create/expose vulnerabilities