this post was submitted on 15 Nov 2023
6 points (65.0% liked)
Firefox Browser (Linux und Android)
57 readers
1 users here now
Der Browser Firefox von Mozilla (Linux und Android)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm not sure how this could be implemented.
JavaScript can access user input fields to do many things such as updated display or provide rich editing features, and it can communicate with the server.
I think either scripts running on the page can react to input into the page or not. Perhaps some scripts should not have internet access? How is this enforceable? I'm not sure how we could build a wall around input fields without breaking many useful features because there are many legitimate reasons that a script would want to react to user input.
I can imagine a small window optionally appearing when you click on the text field. You could write the text into this mini window, but the page wouldn't have access to it. It would copy the text into the actual text field on enter and close the mini window. It would be like writing the message to some txt file and copying it to the text input when you're happy with it. I'm pretty sure this could be done with an extension if someone wanted to create it.