Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplemented webdriver SetWindowSize. #11179
Conversation
|
r? @jgraham |
|
Must remember to update #8623 if/when this merges. |
|
Reviewed 7 of 7 files at r1. components/script/webdriver_handlers.rs, line 302 [r1] (raw file):
This is async; I think the webdriver spec currently expects the resize to be synchronous. components/webdriver_server/lib.rs, line 375 [r1] (raw file):
What happens if the size is greater than the size of the screen? Comments from Reviewable |
|
Review status: all files reviewed at latest revision, 1 unresolved discussion. components/script/webdriver_handlers.rs, line 302 [r1] (raw file):
|
|
Review status: all files reviewed at latest revision, 1 unresolved discussion. components/script/webdriver_handlers.rs, line 302 [r1] (raw file):
|
|
Review status: all files reviewed at latest revision, 1 unresolved discussion. components/script/webdriver_handlers.rs, line 302 [r1] (raw file):
|
highfive
commented
May 17, 2016
|
New code was committed to pull request. |
|
I made SetWindowSize wait for a resize event before responding. |
highfive
commented
May 17, 2016
|
New code was committed to pull request. |
|
Added a timeout to SetWindowSize. |
|
|
91fa863
to
0737990
|
Rebased. |
|
|
|
Reviewed 3 of 8 files at r4, 2 of 6 files at r5, 3 of 4 files at r6. components/webdriver_server/lib.rs, line 226 [r6] (raw file):
I think this should be much smaller like a few hundred ms? components/webdriver_server/lib.rs, line 368 [r6] (raw file):
I think this is wrong per spec, as it is supposed to include the window border &c. I am not particularly worried about that at this time (I am also not sure that the spec is really right here). components/webdriver_server/lib.rs, line 393 [r6] (raw file):
I think in this case we should return the current window size. Comments from Reviewable |
0737990
to
8797f6f
|
Rebased and fixed.
|
|
Reviewed 1 of 6 files at r8, 1 of 4 files at r9, 5 of 5 files at r10. Comments from Reviewable |
|
Reviewed 1 of 6 files at r8. Comments from Reviewable |
|
@bors-servo r+ |
|
|
Implemented webdriver SetWindowSize. Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #10467 (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [X] These changes do not require tests because the new tests are in web-platform-tests/wpt#3024 Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11179) <!-- Reviewable:end -->
|
|
|
Oops, this should have been squashed before merging. |
|
Ah, sorry :( |
|
No biggie. |
asajeffrey commentedMay 13, 2016
•
edited by larsbergstrom
Thank you for contributing to Servo! Please replace each
[ ]by[X]when the step is complete, and replace__with appropriate data:./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsEither:
Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.
This change is