GDevelopApp / GDevelop-extensions

Repository of behaviors, actions, conditions and expressions to be used in GDevelop for creating games
https://gdevelop.io
MIT License
138 stars 54 forks source link

[Clipboard] Error when pasting in browser #528

Open FRosay opened 2 years ago

FRosay commented 2 years ago

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

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

FRosay commented 2 years ago

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?