Repository navigation
Check receiver response in actions.rs - #36928
Merged
Merged
Conversation
PotatoCP
force-pushed
the
action-wait-response
branch
from
May 9, 2025 07:46
d9e77f8 to
2ececfb
Compare
Contributor
|
I don't think we should create a duplicate function. Better to extend the existing |
PotatoCP
force-pushed
the
action-wait-response
branch
from
May 9, 2025 09:02
2ececfb to
bca0b05
Compare
Signed-off-by: PotatoCP <[email protected]>
PotatoCP
force-pushed
the
action-wait-response
branch
from
May 9, 2025 09:08
bca0b05 to
4d02eee
Compare
Contributor
Author
Agreed. I have push the change, thanks |
Taym95
reviewed
May 9, 2025
| Ok(response) => response, | ||
| Err(WebDriverError { error, .. }) => return Err(error), | ||
| }; | ||
| if x < 0 || x as f32 > viewport_size.width || y < 0 || y as f32 > viewport_size.height { |
Member
There was a problem hiding this comment.
I am not sure is this would also work:
Suggested change
| if x < 0 || x as f32 > viewport_size.width || y < 0 || y as f32 > viewport_size.height { | |
| if x < 0.0 || x > viewport_size.width || y < 0.0 || y > viewport_size.height { |
Contributor
Author
There was a problem hiding this comment.
I think it won't work since x and y is i64, and we compare it with float. Also viewport_size.width and viewport_size.height is still f32.
jdm
approved these changes
May 10, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
May 10, 2025
AmalenduManoj
pushed a commit
to AmalenduManoj/servo
that referenced
this pull request
May 12, 2025
Extend `wait_for_script_response()` (servo#35024) for `actions.rs` Signed-off-by: PotatoCP <[email protected]> Co-authored-by: PotatoCP <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend
wait_for_script_response()(#35024) foractions.rs