What version of Guacamole are you using? -Nick
On Mon, Feb 5, 2018 at 9:59 AM, Alex Fadeev <alex...@gmail.com> wrote: > 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 (e.target === $window) > checkClipboard(); > > }, 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(); > originalElement.focus();* > popSelection(); > > // No read is pending any longer > pendingRead = null; > > }); > > // Ensure clipboard element is blurred (and that the "focus" > event > // will fire) > *clipboardContent.blur();* > 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 > "Promted".* > > 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: http://apache-guacamole-general-user-mailing-list. > 2363388.n4.nabble.com/ >