We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02b1170 commit e727b07Copy full SHA for e727b07
gfx/thebes/gfxPlatform.cpp
@@ -1068,6 +1068,15 @@ void gfxPlatform::ReportTelemetry() {
1068
1069
nsString adapterDesc;
1070
gfxInfo->GetAdapterDescription(adapterDesc);
1071
+
1072
+// Android description is constructed in a way that makes it possible to exceed
1073
+// the metric's length limit.
1074
+#if defined(ANDROID)
1075
+ if (!adapterDesc.IsEmpty()) {
1076
+ adapterDesc.Truncate(99);
1077
+ }
1078
+#endif
1079
1080
mozilla::glean::gfx_adapter_primary::description.Set(
1081
NS_ConvertUTF16toUTF8(adapterDesc));
1082
0 commit comments