1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 23:28:06 +02:00

Merge pull request #4952 from yurydelendik/telemetry

Collect More Telemetry Data
This commit is contained in:
Jonas Jenwald 2014-06-17 00:36:58 +02:00
commit 22cfcbcf8a
12 changed files with 207 additions and 24 deletions

View file

@ -630,7 +630,13 @@ var PageView = function pageView(container, id, scale,
// FirefoxCom.request('reportTelemetry', JSON.stringify({
// type: 'pageInfo'
// }));
// // TODO add stream types report here
// // It is a good time to report stream and font types
// PDFView.pdfDocument.getStats().then(function (stats) {
// FirefoxCom.request('reportTelemetry', JSON.stringify({
// type: 'documentStats',
// stats: stats
// }));
// });
//#endif
callback();
}

View file

@ -1570,6 +1570,12 @@ var PDFView = {
for (i = 0, ii = this.pages.length; i < ii; ++i) {
this.pages[i].beforePrint();
}
//#if (FIREFOX || MOZCENTRAL)
// FirefoxCom.request('reportTelemetry', JSON.stringify({
// type: 'print'
// }));
//#endif
},
afterPrint: function pdfViewSetupAfterPrint() {