GDevelop-extensions icon indicating copy to clipboard operation
GDevelop-extensions copied to clipboard

[Clipboard] Error when pasting in browser

Open FRosay opened this issue 2 years ago • 1 comments

Describe the bug of the extension

The extension: Clipboard The problem: When I try to use the action "Get text from the clipboard" from the extension and am testing on a browser via a development build (using "Publish" then "Generate link" in the app), I get nothing except an error in the console.

Steps to reproduce the behaviour:

  1. Use the ReadTextCrossPlatform (full name Get text from the clipboard) from the Clipboard extension
  2. Publish the game via the app, using "Publish" then "Generate link"
  3. Open the game, from the generated link, in any browser
  4. Try using the action

Other details

  • Please include a link to a game if possible!

https://liluo.io/games/bc0b3558-80af-4aac-a8da-d9094913f728 game.zip

  • If applicable, add screenshots to help explain your problem.

On Firefox: image

  • Include any OS/browser version/smartphone that you're using:

Mozilla Firefox 103.0.1 (64-bit)

  • Which version of GDevelop are you using? The desktop app or the web-app?

I am using what I think is the last version (5.0.139) of the GDevelop desktop app

I might try to look into this myself, but I am not sure I have the time/skill. Any hints appreciated anyway :).

FRosay avatar Aug 06 '22 11:08 FRosay

As far as I could understand the problem, it seems that the iframe containing the game on Liluo should have the allow-storage-access-by-user-activation attribute set to true to allow the browser to even ask the user if they want to allow copy/pasting.

I am guessing that this means a potential fix is in the hands of the GDevelop Team? Also that this might be intentional and done for security reasons?

FRosay avatar Aug 20 '22 14:08 FRosay