Skip to content

Study "Copy PGN" not working on Safari #12461

@mrnohr

Description

@mrnohr

Exact URL of where the bug happened

https://lichess.org/study/UxwKRDP3/oKrAPf5m

That is an example, but it is happening on all of my studies.

Steps to reproduce the bug

  1. Open a study in Safari
  2. Go to the Share tab
  3. Click Copy PGN

What did you expect to happen?

The PGN for the current chapter should be copied.

The button should update with a checkmark

What happened instead?

Nothing seems to happen.

In the console I get this error:

[Error] Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
	(anonymous function) (analysisBoard.study.min.js:37:18126)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
	promiseReactionJob

Operating system

macOS Ventura 13.2.1

Browser and version (or alternate access method)

Safari Version 16.3

Additional information

It looks like it could be related to this:

https://stackoverflow.com/questions/62327358/javascript-clipboard-api-safari-ios-notallowederror-message

Other buttons like downloading the PGN do work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions