Skip to content

docs: copy feature requires secure context - fails on mobile Chrome with local files #29

@rseldner

Description

@rseldner

Observation

The copy path and copy link features use navigator.clipboard.writeText(), which requires a secure context (https:// or localhost). On mobile Chrome, files served via content:// URIs do not qualify, so the copy link/text feature silently fails.
The path can be alternatively copied directly from the browser address bar.

This might be specific to mobile Chrome. Copy features in a local file on Opera mobile worked.

Confirmed copying in Chrome mobile in a local HTTP server.

Suggested fix

I'm not sure how practical the copy url feature is in general when looking at a local file on mobile.
So I don't think I'll try to fix.
Add a note to docs/README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions