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 options races p5 #4533

Merged
merged 3 commits into from
Feb 11, 2025
Merged

browser: Fix options races p5 #4533

merged 3 commits into from
Feb 11, 2025

Conversation

codebien
Copy link
Contributor

What?

Continue #4524

@codebien codebien self-assigned this Feb 10, 2025
@codebien codebien changed the base branch from master to codebien/fix-browser-races-2 February 10, 2025 16:29
@codebien codebien changed the title browser: Fix options races p2 browser: Fix options races p5 Feb 10, 2025
@codebien codebien force-pushed the codebien/fix-browser-races-5 branch from 06767b8 to 520cfef Compare February 10, 2025 17:01
@codebien codebien force-pushed the codebien/fix-browser-races-2 branch from ea76798 to e92ec0e Compare February 10, 2025 17:12
@inancgumus inancgumus added this to the v0.57.0 milestone Feb 10, 2025
Base automatically changed from codebien/fix-browser-races-2 to master February 11, 2025 08:48
@codebien codebien force-pushed the codebien/fix-browser-races-5 branch from 520cfef to 67e4019 Compare February 11, 2025 08:59
@codebien codebien marked this pull request as ready for review February 11, 2025 09:14
@codebien codebien requested a review from a team as a code owner February 11, 2025 09:14
@codebien codebien requested review from olegbespalov and joanlopez and removed request for a team February 11, 2025 09:14
@@ -1478,16 +1474,9 @@ func (f *Frame) selectOption(selector string, values sobek.Value, opts *FrameSel
}

// SetContent replaces the entire HTML document content.
func (f *Frame) SetContent(html string, opts sobek.Value) error {
func (f *Frame) SetContent(html string, _ *FrameSetContentOptions) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds like here (and maybe upstream) we can clean up the opts completely? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know, for this reason, I would prefer if we defer this to the next release. In my opinion, it's better to coordinate with @inancgumus on similar refactors.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@inancgumus do you have any plan in mind for it? Can we remove it or do we expect to add features where it is needed?

Copy link
Member

Choose a reason for hiding this comment

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

It's better to keep it and add a TODO comment instead because here, we (the early-browser team) forgot to respect the options.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@inancgumus Unfortunately, I don't have the knowledge to add a meaningful TODO. Can you add one, please? Happy to review the pull request.

Copy link
Member

Choose a reason for hiding this comment

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

@codebien codebien merged commit f7fa5af into master Feb 11, 2025
28 checks passed
@codebien codebien deleted the codebien/fix-browser-races-5 branch February 11, 2025 10:04
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.

4 participants