Skip to content

Support resize_page when browser window is maximized/fullscreen #465

Closed

Description

@ZYK1236

Is your feature request related to a problem? Please describe.

Problem:
Currently, resize_page fails when the browser window is maximized or in full-screen mode with the error:

Protocol error (Browser.setContentsSize): Restore window to normal state before setting content size

Expected Behavior:
resize_page should work regardless of the browser window state, similar to how Chrome DevTools "Toggle device toolbar" feature allows dimension changes even when the browser is maximized.

Describe the solution you'd like

Could the tool automatically handle window state restoration before resizing, or provide an option to simulate viewport resizing (like DevTools device emulation) instead of actual window resizing?

Describe alternatives you've considered

provide an option to simulate viewport resizing (like DevTools device emulation) instead of actual window resizing

Additional context

No response

Activity

  1. added theissue type on Oct 24, 2025
  2. OrKoN commented on Oct 24, 2025

    @OrKoN
    Collaborator

    Thanks, yeah, I think we should automatically unmaximize the window to resize it. The emulation for devices is tracked in separate feature requests.

  3. PeterDraex commented on Dec 14, 2025

    @PeterDraex

    Is there any workaround available?

  4. OrKoN commented on Jan 20, 2026

    @OrKoN
    Collaborator

    Fixed by #748

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions