Permalink
Browse files

Allow setting the preference domain

  • Loading branch information...
1 parent b2fb8dc commit c552c955dad1517603a6d09431a65d81c296d3f1 @SebastianZ SebastianZ committed Sep 19, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 tests/FBTest/content/FBTestFirebug.js
@@ -1124,9 +1124,12 @@ this.OneShotHandler = function(eventTarget, eventName, onEvent, capturing)
* Notice that FBTest automatically resets all preferences before every single test is executed.
* @param {Object} value New value of the preference.
*/
-this.setPref = function(pref, value)
+this.setPref = function(pref, value, prefDomain)
{
- FW.Firebug.setPref(FW.Firebug.prefDomain, pref, value);
+ if (!prefDomain)
+ prefDomain = FW.Firebug.prefDomain;
+
+ FW.Firebug.setPref(prefDomain, pref, value);
};
/**

0 comments on commit c552c95

Please sign in to comment.