Skip to content

Wait for custom fonts to load before continuing - #401

Merged
GarboMuffin merged 1 commit into
developfrom
wait-for-custom-fonts
Oct 31, 2026
Merged

GarboMuffin merged 1 commit into
developfrom
wait-for-custom-fonts

Conversation

@GarboMuffin

@GarboMuffin GarboMuffin commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

@GarboMuffin
GarboMuffin merged commit cecd467 into develop Oct 31, 2026
2 checks passed
@GarboMuffin
GarboMuffin deleted the wait-for-custom-fonts branch October 31, 2026 20:31
Mistium pushed a commit to MistWarp/scratch-vm that referenced this pull request Nov 1, 2026
Mistium added a commit to MistWarp/scratch-vm that referenced this pull request Nov 1, 2026
… suite (#38)

* Fix custom reporter exit state analysis (TurboWarp#368)

Fixes TurboWarp#358

(cherry picked from commit c5bf9c3)

* Fix type analysis of casts with partially matching input types (TurboWarp#369)

Fixes TurboWarp#356

(cherry picked from commit 984e05f)

* Fix isNotActuallyZero on very small numbers (TurboWarp#373)

Fixes TurboWarp#361

(cherry picked from commit 8c62a15)

* Fix casting constant boolean interpretable string to number (TurboWarp#371)

They both should convert to 0
Fixes TurboWarp#359

(cherry picked from commit 32b5428)

* Fix tangent (TurboWarp#381)

fix TurboWarp#380

(cherry picked from commit 042235b)

* Fix missing optimization passes on procedures with multiple variants (TurboWarp#383)

(cherry picked from commit 7d0d67a)

* Actually delete assets when unloaded (TurboWarp#382)

(cherry picked from commit cb8a394)

* Fix compiler error when argument name is literal number (TurboWarp#387)

(cherry picked from commit 55fd9b7)

* Always reject javascript: URLs in canEmbed

(cherry picked from commit 984b4f4)

* Fix some limited prototype pollution

(cherry picked from commit f26ff67)

* Wait for custom fonts to load before continuing (TurboWarp#401)

(cherry picked from commit cecd467)

* Use tap assertions in the font loading test from upstream

* Reject sandboxed extension loads when the script throws while running

Ported from TurboWarp ce39f14 (TurboWarp#399, Improve extension error handling). MistWarp's
unsandboxed loader already catches runtime errors by script name, and its failure path
already lets a failed extension load again, so only the sandboxed iframe path changes: it
now loads scripts through upstream's tw-load-script-element, which rejects as soon as the
script throws instead of leaving the load waiting.

(cherry picked from commit ce39f14)

* Ask about every project extension at once

Ported from TurboWarp 0cb82af (TurboWarp#400, Query security manager extension permissions
concurrently). MistWarp keeps its own loading model, where a denied or failing extension
is recorded and the project still opens, but now asks the security manager about all of a
project's custom extensions together, so it can combine them into one prompt, instead of
one after another. Also uses tap assertions in the canEmbed test from 984b4f4.

(cherry picked from commit 0cb82af)

* Implement argument defaults in addAddonBlock

(cherry picked from commit e9c6e12)

* Import most of the forkphorus test suite (TurboWarp#303)

forkphorus has its own test suite, most of which are regression tests for real bugs in a real compiler so it may be worth testing against.

forkphorus-befunge-eratosthenes and forkphorus-string-functions are probably the most meaningful new test cases; at the very least i wouldn't have needed a new test case in TurboWarp#300 to see changes in snapshots if they were merged

The tests also add coverage for specializations like "delete 1 of list" that somehow weren't in the suite before?

(cherry picked from commit 8ce06bc)

* Drop comments from the ported upstream code

MistWarp code carries no comments, so the explanatory comments and JSDoc lines that came
with the TurboWarp ports are removed; tool directives stay.

* Regenerate compiler snapshots after the upstream ports

Adds snapshots for the forkphorus fixtures and removes one for a fixture that does not
exist. No existing compiler output changes.

---------

Co-authored-by: Thomas Weber <muffin@mailbox.org>
Co-authored-by: Thomas Weber <muffin@muffin.ink>
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.

1 participant