@@ -869,6 +869,13 @@ const PDFViewerApplication = {
869
869
typeof PDFJSDev === "undefined" ||
870
870
PDFJSDev . test ( "MOZCENTRAL || GENERIC" )
871
871
) {
872
+ if ( featureId ) {
873
+ this . externalServices . reportTelemetry ( {
874
+ type : "unsupportedFeature" ,
875
+ featureId,
876
+ } ) ;
877
+ }
878
+
872
879
// For PDFs that contain script and form errors, we should only trigger
873
880
// the fallback once the user has interacted with the page.
874
881
if ( this . _delayedFallbackFeatureIds . length >= 1 && this . _hasInteracted ) {
@@ -1247,6 +1254,10 @@ const PDFViewerApplication = {
1247
1254
}
1248
1255
console . warn ( "Warning: JavaScript is not supported" ) ;
1249
1256
this . _delayedFallbackFeatureIds . push ( UNSUPPORTED_FEATURES . javaScript ) ;
1257
+ this . externalServices . reportTelemetry ( {
1258
+ type : "unsupportedFeature" ,
1259
+ featureId : UNSUPPORTED_FEATURES . javaScript ,
1260
+ } ) ;
1250
1261
return true ;
1251
1262
} ) ;
1252
1263
@@ -1329,6 +1340,10 @@ const PDFViewerApplication = {
1329
1340
if ( info . IsAcroFormPresent ) {
1330
1341
console . warn ( "Warning: AcroForm/XFA is not supported" ) ;
1331
1342
this . _delayedFallbackFeatureIds . push ( UNSUPPORTED_FEATURES . forms ) ;
1343
+ this . externalServices . reportTelemetry ( {
1344
+ type : "unsupportedFeature" ,
1345
+ featureId : UNSUPPORTED_FEATURES . forms ,
1346
+ } ) ;
1332
1347
}
1333
1348
1334
1349
if (
0 commit comments