diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index a8f7f94e6..3ff968c50 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -960,6 +960,10 @@ "message": "Breaks when uBlock Origin is enabled", "description": "An entry in the widget used to select the type of issue" }, + "supportS6Select1Option6": { + "message": "Opens unwanted tabs or windows", + "description": "An entry in the widget used to select the type of issue" + }, "supportRedact": { "message": "Redact", "description": "Text for 'Redact' button" diff --git a/src/js/background.js b/src/js/background.js index cd546ffa0..6f66cef52 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -221,6 +221,11 @@ const µBlock = { // jshint ignore:line // This can be used to defer filtering decision-making. readyToFilter: false, + supportStats: { + launchToReadiness: 0, + launchFromSelfie: false, + }, + pageStores: new Map(), pageStoresToken: 0, diff --git a/src/js/messaging.js b/src/js/messaging.js index 0da3e533e..2006e1b2a 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -1269,7 +1269,9 @@ const getSupportData = async function() { if ( typeof list.entryCount === 'number' ) { listDetails.push(`${list.entryCount}-${list.entryCount-list.entryUsedCount}`); } - if ( typeof list.writeTime === 'number' ) { + if ( typeof list.writeTime !== 'number' || list.writeTime === 0 ) { + listDetails.push('never'); + } else { const delta = (Date.now() - list.writeTime) / 1000 | 0; const days = (delta / 86400) | 0; const hours = (delta % 86400) / 3600 | 0; @@ -1344,6 +1346,7 @@ const getSupportData = async function() { ), modifiedUserSettings, modifiedHiddenSettings, + supportStats: µb.supportStats, }; }; diff --git a/src/js/start.js b/src/js/start.js index 7c673e5a6..b6da693ce 100644 --- a/src/js/start.js +++ b/src/js/start.js @@ -427,6 +427,7 @@ let selfieIsValid = false; try { selfieIsValid = await µb.selfieManager.load(); if ( selfieIsValid === true ) { + µb.supportStats.launchFromSelfie = true; ubolog(`Selfie ready ${Date.now()-vAPI.T0} ms after launch`); } } catch (ex) { @@ -504,7 +505,8 @@ browser.runtime.onUpdateAvailable.addListener(details => { } }); -ubolog(`All ready ${Date.now()-vAPI.T0} ms after launch`); +µb.supportStats.launchToReadiness = Date.now() - vAPI.T0; +ubolog(`All ready ${µb.supportStats.launchToReadiness} ms after launch`); // <<<<< end of private scope })(); diff --git a/src/support.html b/src/support.html index 8ecada803..541b147a5 100644 --- a/src/support.html +++ b/src/support.html @@ -81,10 +81,11 @@