зеркало из https://github.com/mozilla/pjs.git
Wallpaper for bug 348586. Feed preview causes crash. r=mano
This commit is contained in:
Родитель
6230952810
Коммит
7bf6442f27
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче