Closed Bug 1972151 Opened 1 year ago Closed 1 year ago

Image-upscaling test #4 on LCP Web Platform Tests is failing

Categories

(Core :: DOM: Performance APIs, defect)

defect

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: jlink, Assigned: jlink)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Test #4 of the "image-upscaling" LCP WPT test is currently failing with the assert "An upscaled image (width/height) should report the natural size".

The reason for this test failing is precision loss - we do some imperfect floating point math and then convert the result to an integer at the end.

Re-arranging this math a little bit improves things enough that we now produce the correct result.

Pushed by jlink@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/721ddbc3d36c https://hg.mozilla.org/integration/autoland/rev/a9300ff2424b Re-arrange some math a little bit to avoid some unnecessary precision loss in floating point calculations. r=sefeng
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/76b08d1b89ac https://hg.mozilla.org/integration/autoland/rev/de354c6d59d4 Revert "Bug 1972151: Re-arrange some math a little bit to avoid some unnecessary precision loss in floating point calculations. r=sefeng" for causing wpt failures at image-upscaling.html

Backed out for causing wpt failures

Backout link

Push with failures

Failure log

Flags: needinfo?(jlink)
Pushed by jlink@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/517649fdc478 https://hg.mozilla.org/integration/autoland/rev/731309819af2 Re-arrange some math a little bit to avoid some unnecessary precision loss in floating point calculations. r=sefeng
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
Blocks: 1974035
QA Whiteboard: [qa-triage-done-c142/b141]
Flags: needinfo?(jlink)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: