guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Fadeev <alex...@gmail.com>
Subject Re: Virtual Channel callback onpipe doesn't work on IE11
Date Thu, 18 Jan 2018 10:01:41 GMT
*Shortly:*
The reason was that 'guac_client.onpipe' check (in Client.js) appears before
my onpipe declaration.

*Details:*
There are two event listeners

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

    }, true);/

In IE11 two MessageBoxes appear: first on 'load' event (before my 'onpipe'
declaration), the second on 'focus' event (before 'onpipe' check in
Client.js). So second MessageBox overlapped the first one, so the user
closes it first ('onpipe' check passes) and only then user closes the first
one ('onpipe' declaration succeeded, but it is too late).
For my application I removed the event
/$window.addEventListener('load',  checkClipboard, true);
/
In any case 'checkClipboard' is called on 'focus' event

I am testing it now...



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

Mime
View raw message