Post
by athenian200 » 2023-11-15, 22:09
Well, the only real use for this seems to be for web content having access to the clipboard, honestly. If we don't want to allow that, then having this just for extensions seems a bit redundant, if what moonbat said about us already having a way for extensions to access the clipboard is correct.
I'm thinking you were right in the first place to just make the new API write-only, since it seems to be primarily targeted at web content.
The only alternative solution I can think of is, to allow it to read from a user-controlled buffer that isn't the system clipboard, but which pretends to be the system clipboard.
That is, they wouldn't be able to paste directly from the system clipboard, but they could paste something from the system clipboard into this buffer that acts like a fake system clipboard, and then websites could only read what users explicitly wanted websites to be able to read.
Essentially, I'm talking about adding an extra step in the process so that we don't have to worry about web content reading a random value that the user wasn't expecting... making it so that if the user wants something from the system clipboard to be readable by web content, they have to go out of their way to paste it into the fake system clipboard so it can be read.
Maybe this could even be an extension? Not sure what would be within the realm of possibility here. But in general, I'm leaning more towards the idea that making it write-only was the right call, with a possible compromise like I mentioned being the only other thing I would consider.
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind