mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +09:00
[Basilisk] Issue #29 - Remove telemetry from pdfjs completely
This commit is contained in:
parent
0f67602bf1
commit
f5e49fb5a4
3 changed files with 2 additions and 163 deletions
|
|
@ -6494,8 +6494,6 @@ var pdfjsWebLibs;
|
|||
},
|
||||
fallback: function (data, callback) {
|
||||
},
|
||||
reportTelemetry: function (data) {
|
||||
},
|
||||
createDownloadManager: function () {
|
||||
return new downloadManagerLib.DownloadManager();
|
||||
},
|
||||
|
|
@ -7259,12 +7257,6 @@ var pdfjsWebLibs;
|
|||
}.bind(null, info.Producer.toLowerCase()));
|
||||
}
|
||||
var formType = !info.IsAcroFormPresent ? null : info.IsXFAPresent ? 'xfa' : 'acroform';
|
||||
self.externalServices.reportTelemetry({
|
||||
type: 'documentInfo',
|
||||
version: versionId,
|
||||
generator: generatorId,
|
||||
formType: formType
|
||||
});
|
||||
});
|
||||
},
|
||||
setInitialView: function pdfViewSetInitialView(storedHash, options) {
|
||||
|
|
@ -7330,7 +7322,6 @@ var pdfjsWebLibs;
|
|||
this.printService = printService;
|
||||
this.forceRendering();
|
||||
printService.layout();
|
||||
this.externalServices.reportTelemetry({ type: 'print' });
|
||||
},
|
||||
// Whether all pages of the PDF have the same width and height.
|
||||
get hasEqualPageSizes() {
|
||||
|
|
@ -7640,14 +7631,6 @@ var pdfjsWebLibs;
|
|||
if (pageView.error) {
|
||||
PDFViewerApplication.error(mozL10n.get('rendering_error', null, 'An error occurred while rendering the page.'), pageView.error);
|
||||
}
|
||||
PDFViewerApplication.externalServices.reportTelemetry({ type: 'pageInfo' });
|
||||
// It is a good time to report stream and font types.
|
||||
PDFViewerApplication.pdfDocument.getStats().then(function (stats) {
|
||||
PDFViewerApplication.externalServices.reportTelemetry({
|
||||
type: 'documentStats',
|
||||
stats: stats
|
||||
});
|
||||
});
|
||||
}
|
||||
function webViewerTextLayerRendered(e) {
|
||||
if (e.numTextDivs > 0 && !PDFViewerApplication.supportsDocumentColors) {
|
||||
|
|
@ -8507,9 +8490,6 @@ var pdfjsWebLibs;
|
|||
fallback: function (data, callback) {
|
||||
FirefoxCom.request('fallback', data, callback);
|
||||
},
|
||||
reportTelemetry: function (data) {
|
||||
FirefoxCom.request('reportTelemetry', JSON.stringify(data));
|
||||
},
|
||||
createDownloadManager: function () {
|
||||
return new DownloadManager();
|
||||
},
|
||||
|
|
@ -8668,4 +8648,4 @@ function webViewerLoad() {
|
|||
window.PDFViewerApplication = pdfjsWebLibs.pdfjsWebApp.PDFViewerApplication;
|
||||
pdfjsWebLibs.pdfjsWebApp.PDFViewerApplication.run(config);
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded', webViewerLoad, true);
|
||||
document.addEventListener('DOMContentLoaded', webViewerLoad, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue