Wallpaper for bug 348586. Feed preview causes crash. r=mano

This commit is contained in:
sayrer%gmail.com 2006-08-16 01:48:34 +00:00
Родитель 6230952810
Коммит 7bf6442f27
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -427,8 +427,11 @@ var FeedResultService = {
NS_ASSERT(uri != null, "null URI!");
var resultList = this._results[uri.spec];
for (var i = 0; i < resultList.length; ++i) {
/* See bug 348586 arrays with holes causing crashes on
static windows builds, so comment out delete[n] for now */
if (resultList[i].uri == uri) {
delete resultList[i];
//delete resultList[i];
resultList[i] = null;
// send the null value to the end of our little list and pop
// it off
resultList.sort();
@ -437,7 +440,8 @@ var FeedResultService = {
}
}
if (resultList.length == 0)
delete this._results[uri.spec];
this._results[uri.spec] = null;
//delete this._results[uri.spec];
},
createInstance: function FRS_createInstance(outer, iid) {