summaryrefslogtreecommitdiff
path: root/components/sessionstore/content/content-sessionStore.js
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2022-05-08 16:42:41 -0400
committerGaming4JC <g4jc@hyperbola.info>2022-05-08 16:42:41 -0400
commit34964f0ea6b83234e47396441ca3b8334dbf0daa (patch)
tree570f0d78d7c2c8b38343a21cfb2e9e3d351f34e5 /components/sessionstore/content/content-sessionStore.js
parent0e6fd39de109fa1020848fecddb5821501661ca7 (diff)
downloadiceweasel-uxp-34964f0ea6b83234e47396441ca3b8334dbf0daa.tar.gz
Remove telemetry more telemetry references
Diffstat (limited to 'components/sessionstore/content/content-sessionStore.js')
-rw-r--r--components/sessionstore/content/content-sessionStore.js19
1 files changed, 2 insertions, 17 deletions
diff --git a/components/sessionstore/content/content-sessionStore.js b/components/sessionstore/content/content-sessionStore.js
index 858e357..8af3350 100644
--- a/components/sessionstore/content/content-sessionStore.js
+++ b/components/sessionstore/content/content-sessionStore.js
@@ -628,7 +628,6 @@ var SessionStorageListener = {
let size = this.estimateStorageSize(collected);
- MessageQueue.push("telemetry", () => ({ FX_SESSION_RESTORE_DOM_STORAGE_SIZE_ESTIMATE_CHARS: size }));
if (size > Preferences.get("browser.sessionstore.dom_storage_limit", DOM_STORAGE_MAX_CHARS)) {
// Rather than keeping the old storage, which wouldn't match the rest
// of the state of the page, empty the storage. DOM storage will be
@@ -800,37 +799,23 @@ var MessageQueue = {
let durationMs = Date.now();
let data = {};
- let telemetry = {};
for (let [key, func] of this._data) {
let value = func();
- if (key == "telemetry") {
- for (let histogramId of Object.keys(value)) {
- telemetry[histogramId] = value[histogramId];
- }
- } else if (value || (key != "storagechange" && key != "historychange")) {
+ if (value || (key != "storagechange" && key != "historychange")) {
data[key] = value;
}
}
this._data.clear();
- durationMs = Date.now() - durationMs;
- telemetry.FX_SESSION_RESTORE_CONTENT_COLLECT_DATA_LONGEST_OP_MS = durationMs;
-
try {
// Send all data to the parent process.
sendAsyncMessage("SessionStore:update", {
- data, telemetry, flushID,
+ data, flushID,
isFinal: options.isFinal || false,
epoch: gCurrentEpoch
});
} catch (ex if ex && ex.result == Cr.NS_ERROR_OUT_OF_MEMORY) {
- let telemetry = {
- FX_SESSION_RESTORE_SEND_UPDATE_CAUSED_OOM: 1
- };
- sendAsyncMessage("SessionStore:error", {
- telemetry
- });
}
},
};