[ 
https://issues.apache.org/jira/browse/GUACAMOLE-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Muehlner resolved GUACAMOLE-348.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0.0

> 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
>            Assignee: James Muehlner
>            Priority: Major
>             Fix For: 1.0.0
>
>
> 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
(v7.6.3#76005)

Reply via email to