diff --git a/toolkit/mozapps/extensions/XPIProvider.jsm b/toolkit/mozapps/extensions/XPIProvider.jsm index 0bb75a17249..34b12a704d8 100644 --- a/toolkit/mozapps/extensions/XPIProvider.jsm +++ b/toolkit/mozapps/extensions/XPIProvider.jsm @@ -4947,7 +4947,8 @@ var XPIDatabase = { stmt = this.getStatement("getVisibleAddons"); } else { - let sql = "SELECT * FROM addon WHERE visible=1 AND type IN ("; + let sql = "SELECT " + FIELDS_ADDON + " FROM addon WHERE visible=1 AND " + + "type IN ("; for (let i = 1; i <= aTypes.length; i++) { sql += "?" + i; if (i < aTypes.length)