Lorsque je tape du texte dans différentes zones de texte sur les pages en utilisant FireFox (3.6.3), je reçois l'erreur suivante:FireFox nsFormAutoComplete.js Où sont stockés les "paramètres" de getBoolPref()?
Erreur: [Exception ... « Component a renvoyé le code d'échec: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch. getBoolPref] "nsresult:" 0x8000ffff (NS_ERROR_UNEXPECTED) "emplacement:" image JS :: fichier: /// C: /Program%20Files/Mozilla%20Firefox/components/nsFormAutoComplete.js :: anonyme :: ligne 97 "donnée: non ] Source fichier: file: /// C: /Program%20Files/Mozilla%20Firefox/components/nsFormAutoComplete.js ligne: 97
semble se produire pour une page que j'ai développé ainsi que le texte même en tapant dans la barre de recherche Google.
Quand je regarde nsFormAutoComplete.js, je vois ceci:
init : function() {
// Preferences. Add observer so we get notified of changes.
this._prefBranch = Cc["@mozilla.org/preferences-service;1"].
getService(Ci.nsIPrefService).getBranch("browser.formfill.");
this._prefBranch.QueryInterface(Ci.nsIPrefBranch2);
this._prefBranch.addObserver("", this.observer, false);
this.observer._self = this;
this._debug = this._prefBranch.getBoolPref("debug");
this._enabled = this._prefBranch.getBoolPref("enable");
this._agedWeight = this._prefBranch.getIntPref("agedWeight");
this._bucketSize = this._prefBranch.getIntPref("bucketSize");
this._maxTimeGroupings = this._prefBranch.getIntPref("maxTimeGroupings");
this._timeGroupingSize = this._prefBranch.getIntPref("timeGroupingSize") * 1000 * 1000;
this._expireDays = this._getFormExpiryDays();
this._dbStmts = [];
this._observerService.addObserver(this.observer, "xpcom-shutdown", false);
},
Le problème semble se produire sur cette ligne:
this._debug = this._prefBranch.getBoolPref("debug");
En ce moment, ma meilleure estimation est que la préférence "debug" n'existe pas partout où FireFox lit ses préférences. Je ne connais pas grand-chose à FireFox, et la recherche sur le web n'a pas donné beaucoup d'informations. Question: Où FireFox enregistre-t-il/récupère-t-il ces préférences?
Je suppose que si je place une préférence "débogage" dans cet emplacement, je devrais éliminer l'erreur. Cependant, je suis ouvert à d'autres suggestions/plus d'informations.
Merci! --- Dan ---