Skip to content

mac-approve match the Allow sheet ("Allow remote debugging?" / "Allow") in non-English Chrome #707

Description

@ironerumi

Before submitting

  • I searched existing issues and discussions.
  • This is a feature request, not a bug.

Problem

mac-approve looks for the sheet titled Allow remote debugging? and a button described Allow. Chrome localizes both (Japanese: リモート デバッグを許可しますか? / 許可する), so on any non-English UI it returns not-found and the handshake dies at 45 s.

Proposal

Identify the sheet structurally (the only sheet on Chrome's windows whose title mentions debugging, or the one containing the per-instance checkbox) and press the button by a label list — Allow, 許可する, … — overridable by env for languages not listed.

Alternatives considered

  • Forcing Chrome to English (--lang) changes the operator's browser
  • AXPress on the default button is unsafe (could be Cancel)
  • driving the sheet by keyboard needs focus and steals it.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions