[
https://issues.apache.org/jira/browse/GUACAMOLE-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Jumper updated GUACAMOLE-348:
-------------------------------------
Affects Version/s: 0.9.10-incubating
0.9.11-incubating
0.9.12-incubating
> Stream download iframe may not exist in DOM at time of removal
> --------------------------------------------------------------
>
> Key: GUACAMOLE-348
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-348
> Project: Guacamole
> Issue Type: Bug
> Components: guacamole
> Affects Versions: 0.9.10-incubating, 0.9.11-incubating, 0.9.12-incubating
> Reporter: Michael Jumper
>
> From GUACAMOLE-327:
> {quote}
> ... IE seems to have a problem with the fallback code for removing the
> download iframe from the body. If the iframe is successfully removed by the
> callback of the iframe.onload handler, the stream.onend callback encounters
> an error because the iframe is no longer attached. A check for iframe's
> parentElement being defined is a workaround:
> {code:javascript}
> stream.onend = function downloadComplete() {
> $window.setTimeout(function cleanupIframe() {
> if (iframe.parentElement) {
> document.body.removeChild(iframe);
> }
> }, DOWNLOAD_CLEANUP_WAIT);
> };
> {code}
> {quote}
> In both the iframe's onload handler and the stream's onend handler, the
> iframe itself should only be removed from the DOM if it is actually present.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)