You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/06/10 14:08:20 UTC

[jira] [Resolved] (WICKET-5222) Direct iframe removal not supported by Firefox: tab title stays as "Connecting"

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

Martin Grigorov resolved WICKET-5222.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 7.0.0
                   6.9.0

The patch is applied.
Thanks for the investigation!
                
> Direct iframe removal not supported by Firefox: tab title stays as "Connecting"
> -------------------------------------------------------------------------------
>
>                 Key: WICKET-5222
>                 URL: https://issues.apache.org/jira/browse/WICKET-5222
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.8.0
>         Environment: Wicket 6.8.0, Firefox 21
>            Reporter: Guillaume Smet
>            Assignee: Martin Grigorov
>             Fix For: 6.9.0, 7.0.0
>
>         Attachments: postInIframe.tar.gz, wicket-fix-iframe-removal.patch
>
>
> Hi,
> When using the post via iframe feature of Wicket (for multipart Ajax request) with Firefox, the tab title is changed to "Connecting..." and it doesn't get back to the original page title at all, even after the Ajax call returned.
> The iframe is removed in the onload of the iframe ( see
> https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L868
> ) and it seems to be problematic for Firefox.
> Looks like there is some literature about it here:
> http://stackoverflow.com/questions/7285866/never-ending-connecting-message-after-ajax-form-submit
> and using a pattern like the following should fix it:
> iframe.onload = function(){
>     // Do work with the content of the iframeā€¦
>     setTimeout(function(){
>         iframe.parentNode.removeChild(iframe);
>     }, 0);
> }
> Quickstart coming with a way to reproduce the problem:
> - Launch the application using Start.java;
> - Go to http://localhost:8080/ with Firefox;
> - Upload a file via the Ajax submit button;
> - The tab title stays as "Connecting...".
> Now uncomment the resource replacement line in the WicketApplication file, restart the app and it should work correctly.
> Patch using a setTimeout call coming too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira