Skip to content

WebSerial throws permissions policy Security Error #1922

Closed
@gohai

Description

@gohai

Nature of issue?

  • Existing feature enhancement

Details about the bug:

  • Web browser and version: Chrome 92
  • Operating System: macOS 11.5
  • Steps to reproduce this bug:

Try to use navigator.serial.requestPort() as part of a p5 sketch. This will fail with SecurityError: Failed to execute 'requestPort' on 'Serial': Access to the feature "serial" is disallowed by permissions policy..

Printing document.featurePolicy.allowedFeatures() gives a list that largely matches what is defined in the allow-list in PreviewFrame.jsx, but the term serial (see here) is not currently included.

Feature enhancement details:

WebSerial is currently available on Chrome and Edge, and appears to be a useful way to hook up microcontrollers to p5.

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