Skip to content

Tests run with Safari and dart2wasm stall on load #2482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
eyebrowsoffire opened this issue Apr 9, 2025 · 0 comments · May be fixed by #2486
Open

Tests run with Safari and dart2wasm stall on load #2482

eyebrowsoffire opened this issue Apr 9, 2025 · 0 comments · May be fixed by #2486

Comments

@eyebrowsoffire
Copy link
Contributor

We're using this package in the web engine unit tests for Flutter. I am attempting to add some unit tests that run with Safari and dart2wasm (Safari now has WasmGC support) but I am running into a bug where the bootstrapping handshake between the host page and the iframe stalls out and fails. The reason for this is this check

For whatever reason, message.source.location?.href returns the URL of the host page rather than the URL loaded in the iframe. This only happens in Safari, and only happens when running a test compiled via dart2wasm. This seems like a Safari bug, but we might need a workaround for this if we want Safari+dart2wasm to work with this package.

FWIW, just commenting out that check does seem to allow my tests to run, but the web engine unit tests don't need to disambiguate between different test suites because we only run one at a time on the page (only one iframe).

@eyebrowsoffire eyebrowsoffire linked a pull request Apr 15, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant