Bug 1919090: Flatten media capabilities. r=tjr

Differential Revision: https://phabricator.services.mozilla.com/D222342
This commit is contained in:
Fatih 2024-09-18 01:00:24 +00:00
Родитель adb3c310cd
Коммит 29130625c7
3 изменённых файлов: 74 добавлений и 7 удалений

Просмотреть файл

@ -323,7 +323,10 @@ export class UserCharacteristicsPageService {
"canvasdata12Fingerprintjs1software",
"canvasdata13Fingerprintjs2software",
"voices",
"mediaCapabilities",
"mediaCapabilitiesUnsupported",
"mediaCapabilitiesNotSmooth",
"mediaCapabilitiesNotEfficient",
"mediaCapabilitiesH264",
"audioFingerprint",
"jsErrors",
"pointerType",

Просмотреть файл

@ -814,11 +814,18 @@ async function populateMediaCapabilities() {
}
}
return JSON.stringify(capabilities);
return capabilities;
}
const capabilities = await getCapabilities();
return {
mediaCapabilities: getCapabilities(),
mediaCapabilitiesUnsupported: JSON.stringify(capabilities.unsupported),
mediaCapabilitiesNotSmooth: JSON.stringify(capabilities.notSmooth),
mediaCapabilitiesNotEfficient: JSON.stringify(
capabilities.notPowerEfficient
),
mediaCapabilitiesH264: JSON.stringify(capabilities.h264),
};
}

Просмотреть файл

@ -2121,19 +2121,76 @@ characteristics:
data_sensitivity:
- interaction
media_capabilities:
media_capabilities_unsupported:
type: text
description: >
Which, if any, media types are not supported, and whether they can be run smoothly and power-efficiently.
Which, if any, media types are not supported.
lifetime: application
send_in_pings:
- user-characteristics
notification_emails:
- tom@mozilla.com
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1899181
- https://bugzilla.mozilla.org/show_bug.cgi?id=1919090
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1899181#c3
- https://bugzilla.mozilla.org/show_bug.cgi?id=1919090#c1
expires: never
data_sensitivity:
# Text metrics are _required_ to be web_activity or highly_sensitive, so even though this
# is more like 'technical' (per the Data Review), I'm marking highly sensitive.
- highly_sensitive
media_capabilities_not_smooth:
type: text
description: >
Which, if any, media types are not smooth.
lifetime: application
send_in_pings:
- user-characteristics
notification_emails:
- tom@mozilla.com
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1919090
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1919090#c1
expires: never
data_sensitivity:
# Text metrics are _required_ to be web_activity or highly_sensitive, so even though this
# is more like 'technical' (per the Data Review), I'm marking highly sensitive.
- highly_sensitive
media_capabilities_not_efficient:
type: text
description: >
Which, if any, media types are not power efficient.
lifetime: application
send_in_pings:
- user-characteristics
notification_emails:
- tom@mozilla.com
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1919090
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1919090#c1
expires: never
data_sensitivity:
# Text metrics are _required_ to be web_activity or highly_sensitive, so even though this
# is more like 'technical' (per the Data Review), I'm marking highly sensitive.
- highly_sensitive
media_capabilities_h264:
type: text
description: >
Levels of support for H264 codec.
lifetime: application
send_in_pings:
- user-characteristics
notification_emails:
- tom@mozilla.com
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1919090
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1919090#c1
expires: never
data_sensitivity:
# Text metrics are _required_ to be web_activity or highly_sensitive, so even though this