Repository navigation
Implemented 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):
|
|
New code was committed to pull request. |
|
I made SetWindowSize wait for a resize event before responding. |
|
New code was committed to pull request. |
|
Added a timeout to SetWindowSize. |
|
☔ The latest upstream changes (presumably #11243) made this pull request unmergeable. Please resolve the merge conflicts. |
91fa863 to
0737990
Compare
|
Rebased. |
|
☔ The latest upstream changes (presumably #11274) made this pull request unmergeable. Please resolve the merge conflicts. |
|
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
Compare
|
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+ |
|
📌 Commit 8797f6f has been approved by |
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 -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
|
Oops, this should have been squashed before merging. |
|
Ah, sorry :( |
|
No biggie. |
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