Bug 1907170: Collect navigator properties. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D216213
This commit is contained in:
@@ -408,6 +408,9 @@ export class UserCharacteristicsPageService {
|
||||
"mathml9",
|
||||
"mathml10",
|
||||
"monochrome",
|
||||
"oscpu",
|
||||
"pdfViewer",
|
||||
"platform",
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
@@ -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)`
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user