WPT print-test logs are cluttered with `Loading of pdf failed` which seems to be spammed unconditionally
Categories
(Testing :: web-platform-tests, task)
Tracking
(firefox114 fixed)
| Tracking | Status | |
|---|---|---|
| firefox114 | --- | fixed |
People
(Reporter: dholbert, Assigned: alaskanemily)
Details
Attachments
(1 file)
In e.g. this log...
https://treeherder.mozilla.org/logviewer?job_id=410888631&repo=autoland&lineNumber=5048
...there are many many copies of this line:
Marionette WARN Loading of pdf failed
From a searchfox text-search, it looks like that comes from here:
https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/remote/marionette/reftest.sys.mjs#794-799
try {
const pdf = await this.loadPdf(binaryString);
let pages = this.getPages(pageRanges, url, pdf.numPages);
return [this.renderPages(pdf, pages), pages.size];
} finally {
lazy.logger.warn(`Loading of pdf failed`);
If I'm reading that correctly, the finally usage there means we'll log unconditionally, even when there in fact was no failure... Probably we want to do s/finally/catch(e)/ or somesuch?
| Reporter | ||
Comment 1•2 years ago
|
||
(I think the return statement example at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch#the_finally-block confirms my recollection of how try...finally works, even in the face of return statements in the try block. So I think we do want catch(e) instead.)
| Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
| bugherder | ||
Description
•