Skip to content

Conversation

@boggan
Copy link
Contributor

@boggan boggan commented Aug 7, 2025

fix for Firefox 141.0.2+ not resolving promise with Offscreencanvas when exporting GLTF/GLB images

Fixed #31588

Description

  • modified code not to use toBlob (deprecated) when canvas is an instance of Offscreencanvas to prevent returned promise from never resolving.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.63
79.03
338.63
79.03
+0 B
+0 B
WebGPU 567.91
157.09
567.91
157.09
+0 B
+0 B
WebGPU Nodes 566.52
156.84
566.52
156.84
+0 B
+0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 470.38
113.78
470.38
113.78
+0 B
+0 B
WebGPU 641.65
173.56
641.65
173.56
+0 B
+0 B
WebGPU Nodes 596.3
162.86
596.3
162.86
+0 B
+0 B

@Mugen87 Mugen87 changed the title - fix for Firefox 141.0.2+ not resolving promise GLTFExporter: Make getToBlobPromise() more robust. Aug 7, 2025
Rewrite `getToBlobPromise()`.
@Mugen87 Mugen87 added this to the r180 milestone Aug 7, 2025
@Mugen87 Mugen87 merged commit 01b8d30 into mrdoob:dev Aug 7, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deprecated toBlob in Firefox 141.0.2 hangs to unresolved promise

2 participants