Closed
Bug 1371555
Opened 7 years ago
Closed 7 years ago
SetWindowRect has to return WindowRect and not ElementRect
Categories
(Testing :: geckodriver, defect)
Tracking
(firefox55 affected)
RESOLVED
DUPLICATE
of bug 1371405
Tracking | Status | |
---|---|---|
firefox55 | --- | affected |
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Caused by bug 1366728, which should be easy to fix. Lets squeeze this tiny change into the 0.17.0 release too, to make it great.
Assignee | ||
Comment 1•7 years ago
|
||
Oh, and we also interpret x, y, width, and height as float and not u64!
Assignee | ||
Comment 2•7 years ago
|
||
Why does the ElementRectResponse allow floats? Shouldn't it be i64, and u64 too like for WindowRectResponse? https://github.com/mozilla/webdriver-rust/blob/master/src/response.rs#L122
Flags: needinfo?(james)
Flags: needinfo?(dburns)
Assignee | ||
Comment 3•7 years ago
|
||
The change was done in: https://github.com/mozilla/webdriver-rust/commit/f488c3ed90f41406b3062e200bded4398effe442 Sadly no information has been provided why this change was done. :/ When can screen coordinates be floats?
Comment 4•7 years ago
|
||
Because the spec says that DOMRect, the return type of getBoundingClientRect, stores its properties as floats: https://drafts.fxtf.org/geometry/#DOMRect
Flags: needinfo?(james)
Assignee | ||
Comment 5•7 years ago
|
||
I see. Thanks. Also it looks like that David took care of everything via bug 1371405.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(dburns)
You need to log in
before you can comment on or make changes to this bug.
Description
•