mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1150555 - about:performance should not confuse Jetpack addons. r=mossop
This commit is contained in:
parent
f3a0ed664a
commit
18560d3a63
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user