clipboard-polyfill icon indicating copy to clipboard operation
clipboard-polyfill copied to clipboard

Copy not working for Opera Mobile

Open Cililing opened this issue 5 years ago • 3 comments

Copying and pasting is not working for mobile clients, like:

  • Opera Mini
  • Opera Touch
  • Opera for Android

Thrown exception: NotAllowedError: Write/Read permission denied

I think this problem is permissions, which are not supported in Opera clients. All Opera clients are based on Chromium, but it seems that Chrome is handling those in some other way (probably has own implementation for permissions).

I've tested it on https://garron.net/code/clipboard-polyfill/ What works for Opera Mobile:

  • Markup
  • DOM node

What doesn't work:

  • Plain Text
  • Paste Text

As Opera has a quite nice usage on Mobile Phones I think it's worth to consider to add library-support for it. Not working real page with a lot of users, for example: https://hsreplay.net/decks/zBIJy80UbyGGAPvK2OAhsd/ -> Copy deck to hearthstone

Thanks! Przemek

Cililing avatar May 10 '19 10:05 Cililing

Would you mind specifying which OS/browser version combinations work for you?

(I believe that many Opera Mini clients are still using pre-Chromium codebases!)

lgarron avatar May 10 '19 19:05 lgarron

I've checked for Honor Play (Android 9), Google Pixel (Android 8.1), Xiaomi Mi A1 (Android 8.0). None is working.

According Wikipedia Opera for Android has been using Chromium science 2013. Anyway, whatever they use, library is not working for mobile clients of Opera because of missing permissions :(

Cililing avatar May 11 '19 06:05 Cililing

Some copy operations seem to work now, but copying images and reading text still fail due to denied permissions. :-(

lgarron avatar Jul 27 '20 05:07 lgarron