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: race fixes #4523

Merged
merged 1 commit into from
Feb 10, 2025
Merged

browser: race fixes #4523

merged 1 commit into from
Feb 10, 2025

Conversation

mstoykov
Copy link
Contributor

What?

Fixing more page and frame (where they intersect) mappings

Why?

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)

@mstoykov mstoykov force-pushed the fixBrowserRacesInMapping2 branch from 8fb90fc to 86c387b Compare February 10, 2025 13:58
@mstoykov mstoykov marked this pull request as ready for review February 10, 2025 13:59
@mstoykov mstoykov requested a review from a team as a code owner February 10, 2025 13:59
@mstoykov mstoykov requested review from oleiade and olegbespalov and removed request for a team February 10, 2025 13:59
olegbespalov
olegbespalov previously approved these changes Feb 10, 2025
joanlopez
joanlopez previously approved these changes Feb 10, 2025
Base automatically changed from fixBrowserRacesInMapping to master February 10, 2025 14:31
@mstoykov mstoykov dismissed stale reviews from joanlopez and olegbespalov February 10, 2025 14:31

The base branch was changed.

@mstoykov mstoykov force-pushed the fixBrowserRacesInMapping2 branch from 86c387b to 1d973b1 Compare February 10, 2025 14:37
olegbespalov
olegbespalov previously approved these changes Feb 10, 2025
Specifically for:
- dbclick
- dispatchEvent
- fill
- focus
- getAttribute
- hover
- innerHTML
- innerText
- inputValue
@mstoykov mstoykov merged commit 63ae462 into master Feb 10, 2025
28 checks passed
@mstoykov mstoykov deleted the fixBrowserRacesInMapping2 branch February 10, 2025 15:30
@@ -45,18 +45,23 @@ func mapFrame(vu moduleVU, f *common.Frame) mapping {
return f.Content() //nolint:wrapcheck
})
},
"dblclick": func(selector string, opts sobek.Value) *sobek.Promise {
"dblclick": func(selector string, opts sobek.Value) (*sobek.Promise, error) {
popts := common.NewFrameDblClickOptions(f.Timeout())
Copy link
Contributor

@codebien codebien Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as a comment, in this scope, what is the meaning of pops? Parsed options? It sounds a bit ambiguous to me. We should change to something else where it is or Frame Options or the specific DB Options, which converts to fopts or dbopts. I prefer the latter.

Of course, all of this, not in this pull request.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is parsed options and was what was used in the code that we pull out so it isn't in a separate goroutine.

@inancgumus inancgumus added this to the v0.57.0 milestone Feb 10, 2025
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.

5 participants