Closed Bug 2080969 Opened 1 month ago Closed 22 days ago

Migrate set_viewport_size to WebDriver BiDi using browsingContext.setViewport

Categories

(Developer Infrastructure :: Firefox MCP, task, P2)

task
Points:
2

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

(Whiteboard: [webdriver:m22])

Attachments

(1 external file)

The set_viewport_size tool still uses this.driver.manage().window().setRect({ width, height });. It should be migrated to use WebDriver BiDi.

Note that migrating it to browsingContext.setViewport changes the behavior, but matches the description: at the moment, the classic API resizes the window, setViewport will only resize the viewport.

If we want to allow to resize the window as well, we can use browser.setClientWindowState (either for this tool or for another one).

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 22 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: