Skip to content
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

Fix race condition when running preload script for inline browser #619

Merged
merged 5 commits into from
Jan 29, 2025

Conversation

hillary-mutisya
Copy link
Contributor

Our preload script for the inline browser is built as an ESM module. There is a known issue when loading ESM preload scripts: electron/electron#40777. This causes the preload script to sometimes run after the hosted page has been rendered. When this happens, the hosted page cannot access the APIs exposed by the preload script, leading to unexpected behavior. The fix is to update the build to generate this preload script as a commonJS module.

@hillary-mutisya hillary-mutisya added this pull request to the merge queue Jan 29, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 29, 2025
@hillary-mutisya hillary-mutisya added this pull request to the merge queue Jan 29, 2025
Merged via the queue into microsoft:main with commit 75fa859 Jan 29, 2025
13 checks passed
@hillary-mutisya hillary-mutisya deleted the webAgent2 branch January 29, 2025 18:57
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