How to test about:config property value changes

19 views
Skip to first unread message

harshad wadkar

unread,
Oct 16, 2015, 12:56:31 PM10/16/15
to mozilla-labs-jetpack
Hello,

I am trying to set firefox settings using about:config properties.

I would like to test - whether those changes are working while accessing websites. e,g, Not able to access a website or there is performance issue or any other.

Can you suggest me - a way (method / tool) that I can use to test the changes.

Waiting for the reply.

Thanks & Regards

Harshad

Adrian Aichner

unread,
Oct 19, 2015, 7:03:27 AM10/19/15
to mozilla-labs-jetpack
Hi,

https://github.com/anaran/JotFirefox/search?utf8=%E2%9C%93&q=ps&type=Code
shows how an Add-on of mine uses ps.reset (in this case for co-existence of a jpm-built and cfx-built add-on)

I also use ps.set further down.

While my use of these prefs will be removed for an upcoming version of this add-on it should give you an example to start from.

See
https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/preferences_service

https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Unit_testing
shows how to test the functions exported by the example's base64.js module.
Reply all
Reply to author
Forward
0 new messages