Open msujew opened 2 years ago
Hi @msujew, I think it is not Chrome bug anymore. document.queryCommandSupported('paste')
will return false
in all modern browsers. So paste command is not working in any browser.
https://developer.mozilla.org/en-US/docs/Web/API/Document/queryCommandSupported#notes
Please correct me if I'm wrong.
@ouroboran Thanks for the info. It also does not seem to workon FireFox. I assume that most browsers stopped supporting the API at all.
The following issue may be related: https://github.com/eclipse-theia/theia/issues/6209.
Bug Description:
This was originally mentioned in https://github.com/eclipse-theia/theia/discussions/10640
When selecting the
Paste
context menu entry on an editor with Chrome, a notification appears warning the user that the operation is unsupported. This is due to an old bug in the Chromium browser project:https://github.com/eclipse-theia/theia/blob/0387822ed12e21fcb935c7af2c05ed294b782218/packages/core/src/browser/common-frontend-contribution.ts#L312-L315
However, the original bug was seemingly fixed back in 2017, so we can safely assume that no users should be impacted by this, removing the need for checking for
isChrome
.Additional Information