guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Owen <>
Subject RE: Inifinite loop in IE of clipboard check.
Date Mon, 05 Feb 2018 16:34:45 GMT
Yes, had the same? Issue. 

Clipboard okay on Chrome not on IE

But worked on IE from a different workstation. Both IE 11, slightly different versions,

Worth a try and worth patching IE 11.

I haven't troubleshot further. Hope this helps.


-----Original Message-----
From: Alex Fadeev [] 
Sent: 05 February 2018 15:00
Subject: Inifinite loop in IE of clipboard check.

Hello guys,

Just faced with the next issue: in IE (for other browsers everything is ok) for some reason
a java script enters to the infinite loop just after the connection is established.

/$window.addEventListener('focus', function focusGained(e) {
        // Only recheck clipboard if it's the window itself that gained focus
        if ( === $window)

    }, true);/

It goes to the function:

service.getLocalClipboard = function getLocalClipboard() { ... 
   $window.setTimeout(function deferredClipboardRead() {
             // Clean up event listener and selection once the paste attempt has
            // completed
            deferred.promise['finally'](function cleanupReadAttempt() {

                // Do not use future changes in focus
                clipboardContent.removeEventListener('focus', performPaste);

                // Unfocus the clipboard DOM event to avoid mobile keyboard opening,
                // restoring whichever element was originally focused
*                clipboardContent.blur();

                // No read is pending any longer
                pendingRead = null;


            // Ensure clipboard element is blurred (and that the "focus"
            // will fire)
            clipboardContent.addEventListener('focus', performPaste);

The 'focus' callback is called all the time. If I remove '.focus()' and '.blur' calls (in
bold), then there is no loop, but clipboard stops working Also if I do some kind of 'reconnect',
then loop disappears as well.

*There is also "Programmatic clipboard acces" should be "Allowed" or

I am just wondering may be somebody have the same issue.

P.S. Actually the problem that it takes focus all the time from the fields in my custom form.

Thank you for answer in advance 

Sent from:

View raw message