Skip to content

Lazy initialize FinalizationRegistry used by IccColorSpace.#finalizer#20148

Merged
calixteman merged 1 commit intomozilla:masterfrom
fnlctrl:icc-lazy-finalization-registry
Aug 6, 2025
Merged

Lazy initialize FinalizationRegistry used by IccColorSpace.#finalizer#20148
calixteman merged 1 commit intomozilla:masterfrom
fnlctrl:icc-lazy-finalization-registry

Conversation

@fnlctrl
Copy link
Contributor

@fnlctrl fnlctrl commented Aug 5, 2025

FinalizationRegistry is Safari 14.1+ and cannot be polyfilled. This change would allow custom legacy browser-compatible builds to still work.

I initially thought of adding the same check as elsewhere in the codebase, but I found since the IccColorSpace usage is always guarded by IccColorSpace.isUsable, simply deferring intialization of IccColorSpace.#finalizer should suffice.

@calixteman
Copy link
Contributor

/botio test

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_test from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/8764328ae0bb440/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_test from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/37258fdae527a1d/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/8764328ae0bb440/output.txt

Total script time: 30.43 mins

  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/37258fdae527a1d/output.txt

Total script time: 58.64 mins

  • Unit tests: FAILED
  • Integration Tests: Passed
  • Regression tests: Passed

Copy link
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.

@calixteman calixteman merged commit d41f144 into mozilla:master Aug 6, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants