[meta] Support "browsingContext.setViewport" command
Categories
(Remote Protocol :: WebDriver BiDi, enhancement)
Tracking
(Not tracked)
People
(Reporter: whimboo, Unassigned)
References
(Depends on 3 open bugs, Blocks 1 open bug, )
Details
(Keywords: meta)
The browsingContext.setViewport
command will allow clients to adjust the size of the visible viewport.
As of now it is not available in the specification but should get merged soon.
Reporter | ||
Updated•1 years ago
|
Reporter | ||
Updated•1 years ago
|
Reporter | ||
Comment 1•1 year ago
|
||
Emilio, over on bug 1544417 comment 17 you made a comment related to the viewport emulation in CDP which we haven't addressed yet and also won't given that WebDriver BiDi has the feature as well now. Could you maybe have a look at the BiDi code for browsingContext.setViewport
and tell us if anything needs to be changed (these days)? Tests so far are all fine, but maybe the code will not work for some special scenarios? Thanks!
Comment 2•1 year ago
|
||
That looks roughly correct. I'd be wary about some rounding errors around here because it could be fractional. Also there's no layout flush at all there.
Comment 3•1 year ago
|
||
(which to be clear is fine but contradicts the comment)
Reporter | ||
Comment 4•11 months ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #2)
That looks roughly correct. I'd be wary about some rounding errors around here because it could be fractional. Also there's no layout flush at all there.
Thanks. So far we haven't seen an issue with rounding. So I'll make sure to keep a special look at this when I'm implementing the zoom feature which might indeed cause trouble here. What specifically do you mean with there's no layout flush at all here
? Doesn't modifying the browser's width and height trigger a layout flush? If not, what should we actually do?
Comment 5•11 months ago
|
||
Not synchronously, which is what the comment implies. I'd just remove the comment tbh, but I don't care much either way :)
Description
•