Bug 1150555 - about:performance should not confuse Jetpack addons. r=mossop

This commit is contained in:
David Rajchenbach-Teller 2015-04-02 23:39:30 +02:00
Родитель 7484118b30
Коммит cb21b61737
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -54,9 +54,11 @@ let State = {
let newData = new Map();
let deltas = [];
for (let componentNew of snapshot.componentsData) {
let componentOld = State._componentsData.get(componentNew.name);
let {name, addonId, isSystem} = componentNew;
let key = JSON.stringify({name, addonId, isSystem});
let componentOld = State._componentsData.get(key);
deltas.push(componentNew.substract(componentOld));
newData.set(componentNew.name, componentNew);
newData.set(key, componentNew);
}
State._componentsData = newData;
let now = window.performance.now();