Unofficial Homestuck Collection does not support clipboard-read and clipboard-write attributes #347
Labels
bug
Something isn't working
implementation
Adjust how something is implemented w/o directly affecting features
mods
This relates to the mod system and user-generated content
Milestone
It is impossible to give clipboard access to iframes.
According to #w3c/webappsec-permissions-policy#322 (comment) and this bug report, chrome versions 81-85 had broken iframe clipboard permissions. The feature policies
clipboard-write
andclipboard-allow
were created to solve this issue, but the UHC seems to not recognize them. (The bug was fixed in Chrome 85, which was first used in Electron 10.0, a version newer than the UHC's Electron.)To Reproduce
Steps to reproduce the behavior:
<iframe ... allow="clipboard-read; clipboard-write;">
) will fail in the UHC2.Expected behavior
The parent window (the UHC) should recognize the policies and change behavior accordingly; this does not happen.
Screenshots
Desktop (please complete the following information):
Additional context
iframe is meant to be used for the "share" button in this project. The iframe is in use here, with security policies functioning as expected.
Here is a link to a mod file which includes the iframe within its template.
The text was updated successfully, but these errors were encountered: