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:
commit
22cfcbcf8a
12 changed files with 207 additions and 24 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue