B2G/gecko/toolkit/forgetaboutsite/test/unit/test_removeDataFromDomain.js
/**
 * Adds a content preference for the specified URI.
 *
 * @param aURI
 *        The URI to add a preference for.
 */
Adds a content preference for the specified URI.
@param aURI
The URI to add a preference for.
Adds a content preference for the specified URI . @param aURI The URI to add a preference for .
function add_preference(aURI)
{
  check_preference_exists(aURI, false);
  let cp = Cc["@mozilla.org/content-pref/service;1"].
           getService(Ci.nsIContentPrefService);
  cp.setPref(aURI, PREFERENCE_NAME, "foo");
  check_preference_exists(aURI, true);
}
function add_preference ( aURI ) { check_preference_exists ( aURI , false ) ; let cp = Cc [ "@mozilla.org/content-pref/service;1" ] . getService ( Ci . nsIContentPrefService ) ; cp . setPref ( aURI , PREFERENCE_NAME , "foo" ) ; check_preference_exists ( aURI , true ) ; }
Adds a content preference for the specified URI.
Adds a content preference for the specified URI .