GDevelop-extensions
GDevelop-extensions copied to clipboard
[Clipboard] Error when pasting in browser
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:
- Use the ReadTextCrossPlatform (full name Get text from the clipboard) from the Clipboard extension
- Publish the game via the app, using "Publish" then "Generate link"
- Open the game, from the generated link, in any browser
- 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:
- 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 :).
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?