aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/vapi-background.js1
-rw-r--r--js/vapi-client.js8
-rw-r--r--js/vapi-common.js6
3 files changed, 9 insertions, 6 deletions
diff --git a/js/vapi-background.js b/js/vapi-background.js
index a1b70e4..fbb7353 100644
--- a/js/vapi-background.js
+++ b/js/vapi-background.js
@@ -36,7 +36,6 @@
let vAPI = self.vAPI = self.vAPI || {};
- vAPI.firefox = true;
vAPI.modernFirefox =
Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}'
&& Services.vc.compare(Services.appinfo.version, '44') > 0;
diff --git a/js/vapi-client.js b/js/vapi-client.js
index 20e16f9..6f46e96 100644
--- a/js/vapi-client.js
+++ b/js/vapi-client.js
@@ -35,12 +35,14 @@
/******************************************************************************/
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1225&desc=6#c10
-if ( self.vAPI === undefined || self.vAPI.eMatrix !== true ) {
- self.vAPI = { eMatrix: true };
+// eMatrix: does this apply to us?
+// In the meantime, let's remove the useless `eMatrix' property from vAPI
+if (self.vAPI === undefined) {
+ self.vAPI = {};
}
var vAPI = self.vAPI;
-vAPI.firefox = true;
+
vAPI.sessionId = String.fromCharCode(Date.now() % 25 + 97) +
Math.random().toString(36).slice(2);
diff --git a/js/vapi-common.js b/js/vapi-common.js
index 6946a9c..f1bc2ca 100644
--- a/js/vapi-common.js
+++ b/js/vapi-common.js
@@ -39,8 +39,10 @@ const {Services} = Components.utils.import(
);
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1225&desc=6#c10
-if ( self.vAPI === undefined || self.vAPI.eMatrix !== true ) {
- self.vAPI = { eMatrix: true };
+// eMatrix: does this apply to us?
+// In the meantime, let's remove the useless `eMatrix' property from vAPI
+if (self.vAPI === undefined) {
+ self.vAPI = {};
}
var vAPI = self.vAPI;