feat: ensure the result object maintains the same structure to avoid potential compatibility issues.

This commit is contained in:
kik-kik 2024-09-16 18:33:59 +02:00
Родитель 12891f5522
Коммит 0834fead9a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 77A4696F55505449
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -1042,6 +1042,9 @@ def get_windows_features():
results = {
"count": subset.count(),
"compositors": subset.map(lambda p: (get_compositor(p),)).countByKey(),
# Setting to empty list due to histogram deprecation.
# For more info see: https://bugzilla.mozilla.org/show_bug.cgi?id=1914369
"plugin_models": [],
"content_backends": get_content_backends(subset),
"media_decoders": get_media_decoders(subset),
"gpu_process": gpu_process_map(subset),
@ -1074,6 +1077,9 @@ def get_windows_features():
"d2d": d2d_status_map,
"textureSharing": texture_sharing_map,
"warp": warp_status_map,
# Setting to empty list due to histogram deprecation.
# For more info see: https://bugzilla.mozilla.org/show_bug.cgi?id=1914369
"plugin_models": [],
"media_decoders": media_decoders,
"gpu_process": gpu_process_map(windows_features),
"advanced_layers": advanced_layers_map(windows_features),