When the Workbench is opened in a way, which doesn't have a secure context, or if navigator.clipboard is not supported, the text copying functionality will still work.
Why?
Some copy buttons in the WB did not work when the document was not in a secure context.
How?
I added a fallback option using document.execCommand('copy');, as used in other views (e.g. repository URL copy button).
What?
When the Workbench is opened in a way, which doesn't have a secure context, or if
navigator.clipboard
is not supported, the text copying functionality will still work.Why?
Some copy buttons in the WB did not work when the document was not in a secure context.
How?
I added a fallback option using
document.execCommand('copy');
, as used in other views (e.g. repository URL copy button).