rfellows commented on code in PR #9701:
URL: https://github.com/apache/nifi/pull/9701#discussion_r1946803545


##########
nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/service/canvas-utils.service.ts:
##########
@@ -956,7 +956,16 @@ export class CanvasUtils {
         return { x, y };
     }
 
+    public isClipboardAvailable(): boolean {
+        // system clipboard interaction requires the browser to be in a 
secured context.
+        return window.isSecureContext && Object.hasOwn(window, 
'ClipboardItem');

Review Comment:
   Good idea to inject window in the future, but there are many places where it 
is used directly now. We should address it across the board in its own commit. 
I filed this [1] JIRA, feel free to add commentary to it.
   
   [1] [NIFI-14250](https://issues.apache.org/jira/browse/)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to