Skip to content

Tweak the WasmImage implementation a little bit (PR 21225 follow-up)#21229

Merged
Snuffleupagus merged 1 commit into
mozilla:masterfrom
Snuffleupagus:WasmImage-private
May 6, 2026
Merged

Tweak the WasmImage implementation a little bit (PR 21225 follow-up)#21229
Snuffleupagus merged 1 commit into
mozilla:masterfrom
Snuffleupagus:WasmImage-private

Conversation

@Snuffleupagus
Copy link
Copy Markdown
Collaborator

This fixes two things that I overlooked in PR #21225, more specifically:

  • Use proper, rather than semi, private class fields in WasmImage.

  • Make tracking of WasmImage instances optional, to avoid keeping data alive permanently in the IMAGE_DECODERS build.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 6, 2026

Codecov Report

❌ Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 55.92%. Comparing base (cd1b5f5) to head (3f6a2fe).

Files with missing lines Patch % Lines
src/core/wasm_image.js 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21229      +/-   ##
==========================================
- Coverage   55.93%   55.92%   -0.01%     
==========================================
  Files         220      220              
  Lines       58990    58991       +1     
==========================================
- Hits        32994    32989       -5     
- Misses      25996    26002       +6     
Flag Coverage Δ
fonttest 8.65% <0.00%> (-0.01%) ⬇️
unittest 55.20% <93.75%> (+<0.01%) ⬆️
unittestcli 54.45% <87.50%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Snuffleupagus

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@mozilla mozilla deleted a comment from moz-tools-bot May 6, 2026
@mozilla mozilla deleted a comment from moz-tools-bot May 6, 2026
@mozilla mozilla deleted a comment from moz-tools-bot May 6, 2026
@mozilla mozilla deleted a comment from moz-tools-bot May 6, 2026
This fixes two things that I overlooked in PR 21225, more specifically:

 - Use proper, rather than semi, private class fields in `WasmImage`.

 - Make tracking of `WasmImage` instances optional, to avoid keeping data alive permanently in the `IMAGE_DECODERS` build.
@Snuffleupagus
Copy link
Copy Markdown
Collaborator Author

Update the patch to revert the filename-related changes, to not make these classes more annoying to use standalone.

/botio browsertest

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_browsertest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/6356d4f8be56776/output.txt

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

Command cmd_browsertest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/fab7febf5bc05e2/output.txt

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/6356d4f8be56776/output.txt

Total script time: 18.46 mins

  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.241.84.105:8877/6356d4f8be56776/reftest-analyzer.html#web=eq.log

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/fab7febf5bc05e2/output.txt

Total script time: 24.72 mins

  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.193.163.58:8877/fab7febf5bc05e2/reftest-analyzer.html#web=eq.log

@Snuffleupagus Snuffleupagus merged commit cce61cb into mozilla:master May 6, 2026
25 of 26 checks passed
@Snuffleupagus Snuffleupagus deleted the WasmImage-private branch May 6, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants