Skip to content

Commit 5933ea7

Browse files
committed
For #11961: collect telemetry on all unique unsupported features that trigger fallback error.
This expands upon the telemetry we are collecting that shows the fallback error.
1 parent 039307f commit 5933ea7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

web/app.js

+14
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,20 @@ const PDFViewerApplication = {
869869
typeof PDFJSDev === "undefined" ||
870870
PDFJSDev.test("MOZCENTRAL || GENERIC")
871871
) {
872+
if (featureId) {
873+
this.externalServices.reportTelemetry({
874+
type: "unsupportedFeature",
875+
featureId,
876+
});
877+
} else {
878+
for (const unsupportedFeature of this._delayedFallbackFeatureIds) {
879+
this.externalServices.reportTelemetry({
880+
type: "unsupportedFeature",
881+
featureId: unsupportedFeature,
882+
});
883+
}
884+
}
885+
872886
// For PDFs that contain script and form errors, we should only trigger
873887
// the fallback once the user has interacted with the page.
874888
if (this._delayedFallbackFeatureIds.length >= 1 && this._hasInteracted) {

0 commit comments

Comments
 (0)