Hi Oliver,
Fantastic! Thank you for looking into this. Assuming this fix works (and I
assume it does), this will solve one of the big remaining issues in
Javascript handling in SF 2.5.2.
-Yaron
On Tue, Jun 11, 2013 at 6:03 PM, Oliver Lutzi <oliverlu...@gmx.de> wrote:
> Hey,
>
> I encountered the same problem (using a different extension). Basil Ell
> and I figured out that the source of the bug is line 84 of the file
> "SF_popupform.js".
>
> You use the "setInterval()" method to call a function at specified
> intervals and escape it once "window.readystate" returns "interactive".
> As described in [1], "readystate" chages its return values from
> "loading" to "interactive" and finally to "complete". If "readystate"
> happens to change from state "loading" to "complete" between two calls,
> the script never escapes "setInterval()" because the state "interactive"
> was never observed.
>
> Therefore: Change the code in line 84 from
>
> if ( readystate === 'interactive' ) {
>
> to
>
> if ( readystate === 'interactive' || readystate === 'complete' ) {
>
>
> and the bug should be fixed.
>
>
> Best regards,
> Oliver Lutzi
>
>
> [1] https://developer.mozilla.org/en-US/docs/Web/API/document.readyState
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel