docs: function preferences_setPref(prefName, value, interfaceType) {
      try {
        switch (typeof value) {
          case ('boolean'):
            this.prefBranch.setBoolPref(prefName, value);
            break;
          case ('string'):
            this.prefBranch.setCharPref(prefName, value);
            break;
          case ('number'):
            this.prefBranch.setIntPref(prefName, value);
            break;
          default:
            this.prefBranch.setComplexValue(prefName, interfaceType, value);
        }
      } catch(e) {
        return false;
      }
  
      return true;
    }