terminal paste protection : why not at browser level?
terminal paste protection : why not at browser level?
Posted Apr 1, 2018 23:13 UTC (Sun) by roc (subscriber, #30627)In reply to: terminal paste protection : why not at browser level? by Herve5
Parent article: A look at terminal emulators, part 1
It's hard to do that in the browser in a foolproof way because it's difficult to determine "what actually was displayed".
For example, is text inside "font-size:1px" displayed? How about text inside "opacity:0.05"? How about "background:black; color:rgb(5,5,5)"? How about homoglyphs? What about using relative positioning, line-height, letter-spacing etc to overprint or reorder text?
The most foolproof way might be to determine the copied text by performing OCR on the pixel data ... except of course there are interesting ways to fool OCR too.
