Bug 722972 - Reduce about:memory perturbation (part 2 of 7). r=jlebar.

--HG--
extra : rebase_source : 3c8b59d8c2e55acd5eca32a984da344051869f43
This commit is contained in:
Nicholas Nethercote 2012-02-07 21:41:36 -08:00
Родитель 7c6e15ae3b
Коммит dbd365a683
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -230,8 +230,8 @@ Reporter.prototype = {
treeNameMatches: function(aTreeName) {
// Nb: the '/' must be present, because we have a KIND_OTHER reporter
// called "explicit" which is not part of the "explicit" tree.
aTreeName += "/";
return this._unsafePath.slice(0, aTreeName.length) === aTreeName;
return this._unsafePath.indexOf(aTreeName) === 0 &&
this._unsafePath.charAt(aTreeName.length) === '/';
}
};