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

browser: fix possible races #4528

Merged
merged 6 commits into from
Feb 10, 2025
Merged

Conversation

olegbespalov
Copy link
Contributor

@olegbespalov olegbespalov commented Feb 10, 2025

What?

Same as #4522 this PR fixes usages of sobek.Value inside go routines which could lead to the race.

It fixes this for following APIs:

  • SelectOption
  • SetChecked
  • SetInputFiles
  • TextContent

Note that SelectOption and SetInputFiles still not fully migrated, since some usages of the sobek.Value requires a bigger refactoring there.

Why?

#4085

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@olegbespalov olegbespalov added this to the v0.57.0 milestone Feb 10, 2025
@olegbespalov olegbespalov self-assigned this Feb 10, 2025
@olegbespalov olegbespalov requested a review from a team as a code owner February 10, 2025 13:33
@olegbespalov olegbespalov requested review from oleiade, codebien and mstoykov and removed request for a team February 10, 2025 13:33
@olegbespalov olegbespalov merged commit a36670d into master Feb 10, 2025
28 checks passed
@olegbespalov olegbespalov deleted the fix/usage-of-sobek-values-p3 branch February 10, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants