Skip to content

[Bug]: playwright Webkit can use touch event #38371

@lightersss

Description

@lightersss

Version

1.57.0

Steps to reproduce

use the console in playwright webkit to create touchEvent
document.createEvent('TouchEvent')

Expected behavior

Create touchEvent should cause an error.

Actual behavior

In safari on Mac, create touchEvent will cause an error.

Image

but in webkit the touchEvent can be created successfully.

Image

Additional context

No response

Environment

System:
    OS: macOS 15.3.1
    CPU: (12) arm64 Apple M4 Pro
    Memory: 116.58 MB / 24.00 GB
  Binaries:
    Node: 18.20.8 - /Users/guohao01/.nvm/versions/node/v18.20.8/bin/node
    Yarn: 1.22.22 - /Users/guohao01/.nvm/versions/node/v18.20.8/bin/yarn
    npm: 10.8.2 - /Users/guohao01/.nvm/versions/node/v18.20.8/bin/npm
    pnpm: 10.24.0 - /Users/guohao01/.nvm/versions/node/v18.20.8/bin/pnpm
  IDEs:
    Cursor: 2.1.42 - /usr/local/bin/cursor
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.57.0 => 1.57.0 
    playwright: ^1.57.0 => 1.57.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions