4 ms·
If I recall correctly, this is actually due to a security restriction that Google has circumvented since it built both the browser and the application. If you
by AlphaWeaver 7y ago
If I recall correctly, this is actually due to a security restriction that Google has circumvented since it built both the browser and the application.
If you could right click to paste, that would mean it would be possible for Javascript to access your clipboard on any site you go to. Firefox enforces the appropriate security setting here, Chrome simply has some sort of workaround built in by Google to allow them to make the UX slightly better on their own site.
- noir_lord 7y ago> Chrome simply has some sort of workaround built in by Google to allow them to make the UX slightly better on their own site. The optics on that are potentially terrible. The dominant browser from the dominant search engine company deliberately breaks a standard it enforces elsewhere only on its own sites. Ouch.
- zerocrates 7y agoCopy/paste on Docs at least used to be a feature you got from installing an extension or "app" in Chrome... I think maybe that now is preinstalled? (Or I've just had it for so long I don't notice) On the other hand copy from the Docs menubar and custom right-click menu works for me right now in Firefox, with no addons that I'm aware of, so maybe this whole discussion is outdated.
- AlphaWeaver 7y agoIt didn't use to be possible to manipulate the clipboard at all using Javascript, so sites would embed tiny flash applets to make "Copy to Clipboard" buttons. Now it is possible to copy text to the clipboard using the HTML5 Clipboard API [0], (I think it might still have to be triggered based on a user input event, but I'm not positive), but reading the clipboard is still not possible, for the aforementioned security reasons. [0]: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_A...