5 ms·
I’m curious, how does Google Docs paste from the clipboard when I click the “paste” button from within the Google Docs UI?
by spideymans 6y ago
I’m curious, how does Google Docs paste from the clipboard when I click the “paste” button from within the Google Docs UI?
- shakna 6y agoReading from the clipboard is allowed on a user-triggered event. It's somewhat similar to how Firefox has disallowed auto-playing videos except on user permission or a user-triggered event. Which has been mostly worked around by the bad actors, who use things like mouse-over or scroll to trigger the event.
- gorgoiler 6y ago> user-triggered event “Click Reject All Cookies to exercise your GDPR rights!”
- andy_ppp 6y agoThis is a really good point. Those popups are disgusting and this is yet another reason to not disturb your users. I'm fine with a button in the footer of every page to do this, I think displaying a popup for this is terrible and I won't do it unless compelled to. Does anyone know what the rules are, I think they are much vaguer than most people suggest.
- mavsman 6y ago> Which has been mostly worked around by the bad actors, who use things like mouse-over or scroll to trigger the event. Somehow I didn't even realize that's how they were getting around it! I just thought, "Dang, I thought I turned that crap off." Good callout.
- jehna1 6y agoThe first time you did this your browser asked for a permission via browser's native permission modal
- kalleboo 6y agoIn Safari you get a browser-provided popup menu that just has "Paste" in it when you click on the Google Docs Paste button, it doesn't paste directly
- saint-loup 6y agoIn Firefox it doesn't. When you click, a modal panel appears reminding you of the shortcuts.