Bug 1907170: Collect navigator properties. r=timhuang

Differential Revision: https://phabricator.services.mozilla.com/D216213
This commit is contained in:
Fatih
2024-07-16 19:34:06 +00:00
parent 0b8c6dcea8
commit 56e7d24363
3 changed files with 63 additions and 0 deletions

View File

@@ -408,6 +408,9 @@ export class UserCharacteristicsPageService {
"mathml9",
"mathml10",
"monochrome",
"oscpu",
"pdfViewer",
"platform",
],
};

View File

@@ -950,6 +950,14 @@ async function populateCSSQueries() {
};
}
async function populateNavigatorProperties() {
return {
oscpu: navigator.oscpu,
pdfViewer: navigator.pdfViewerEnabled,
platform: navigator.platform,
};
}
async function populatePointerInfo() {
const capabilities = {
None: 0,
@@ -1228,6 +1236,7 @@ const LocalFiraSans = new FontFace(
populateSensorInfo,
populateMathML,
populateCSSQueries,
populateNavigatorProperties,
];
// Catches errors in promise-creating functions. E.g. if populateVoiceList
// throws an error before returning any of its `key: (Promise<any> | any)`

View File

@@ -2604,3 +2604,54 @@ characteristics:
expires: never
data_sensitivity:
- technical
oscpu:
type: string
description: >
User's OS CPU reported by the navigator
lifetime: application
send_in_pings:
- user-characteristics
notification_emails:
- tom@mozilla.com
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1907170
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1907170#c1
expires: never
data_sensitivity:
- technical
pdf_viewer:
type: boolean
description: >
PDF viewer support reported by the navigator
lifetime: application
send_in_pings:
- user-characteristics
notification_emails:
- tom@mozilla.com
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1907170
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1907170#c1
expires: never
data_sensitivity:
- technical
platform:
type: string
description: >
Platform reported by the navigator
lifetime: application
send_in_pings:
- user-characteristics
notification_emails:
- tom@mozilla.com
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1907170
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1907170#c1
expires: never
data_sensitivity:
- technical