-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
@@ -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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this 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 🙏
As per #4533 (comment).