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

Add TODO to Frame.SetContent #4538

Merged
merged 2 commits into from
Feb 12, 2025
Merged

Add TODO to Frame.SetContent #4538

merged 2 commits into from
Feb 12, 2025

Conversation

inancgumus
Copy link
Member

As per #4533 (comment).

@inancgumus inancgumus requested a review from a team as a code owner February 11, 2025 15:31
@inancgumus inancgumus requested review from oleiade and codebien and removed request for a team February 11, 2025 15:31
@inancgumus inancgumus requested review from olegbespalov and removed request for oleiade February 11, 2025 15:32
codebien
codebien previously approved these changes Feb 11, 2025
@@ -1473,6 +1473,8 @@ func (f *Frame) selectOption(selector string, values []any, opts *FrameSelectOpt
func (f *Frame) SetContent(html string, _ *FrameSetContentOptions) error {
f.log.Debugf("Frame:SetContent", "fid:%s furl:%q", f.ID(), f.URL())

// TODO(@inancgumus): Respect the FrameSetContentOptions before executing the action.
Copy link
Contributor

@codebien codebien Feb 11, 2025

Choose a reason for hiding this comment

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

Out of curiosity, would it be enough by wrapping the context with the timeout or do we need something else? It would be good to have a suggestion regarding how to fix it so whoever will look into it then they might have a better starting point.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, a suggestion would be good. But it's complicated to explain since the option not only involves a timeout, it also involves waiting for a "lifecycle" event. I've added a small suggestion: 41af72a

Copy link
Contributor

@codebien codebien left a comment

Choose a reason for hiding this comment

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

@inancgumus LGTM 🎉 Remember to squash, please 🙏

@inancgumus inancgumus merged commit cc85112 into master Feb 12, 2025
28 checks passed
@inancgumus inancgumus deleted the add/todo-frame-setcontent branch February 12, 2025 13:03
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.

3 participants