Bug 871828 - Fix global object sharing for FormHistory. r=gavin, r=khuey

This commit is contained in:
Gregor Wagner 2013-05-14 08:29:31 -04:00
parent 810bfcab4c
commit e74423160c

View File

@ -78,7 +78,7 @@
* an error occurred.
*/
EXPORTED_SYMBOLS = [ "FormHistory" ];
this.EXPORTED_SYMBOLS = ["FormHistory"];
const Cc = Components.classes;
const Ci = Components.interfaces;
@ -754,7 +754,7 @@ function expireOldEntriesVacuum(aExpireTime, aBeginningCount) {
});
}
const FormHistory = {
this.FormHistory = {
search : function formHistorySearch(aSelectTerms, aSearchData, aCallbacks) {
// if no terms selected, select everything
aSelectTerms = (aSelectTerms) ? aSelectTerms : validFields;