Bug 46398 - Flash audio player is not loaded (dynamically added script order of execution)
Summary: Flash audio player is not loaded (dynamically added script order of execution)
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://www.ipamericas.org.br/
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-23 13:20 PDT by vivianne costa
Modified: 2010-12-02 15:42 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vivianne costa 2010-09-23 13:20:40 PDT
I have been  experiencing a bug on my website. On my homepage, I have a div that loads (using jquery) an external HTML file. On this HTML, there is an audio player and this player is not loaded on my homepage when I use Safari or Chrome. It works just fine on IE and Firefox. 

Also. the audio player works when I open the external HTML directly on Safari. The problem happens only when the HTMl is loaded by my homepage.

Homepage:
http://www.ipamericas.org.br

Html that stores the audio player:
http://www.ipamericas.org.br/conteudos/index.php/igreja-americas/mensagens-em-audio-home
Comment 1 Alexey Proskuryakov 2010-09-24 10:40:18 PDT
The issue seems to be that this content is loaded dynamically, and we execute dynamically inserted scripts in a wrong order (so, the swfobject variable is undefined when used). I think there's already a bug for that, but I couldn't quickly find it.
Comment 2 vivianne costa 2010-09-24 11:35:25 PDT
(In reply to comment #1)
> The issue seems to be that this content is loaded dynamically, and we execute dynamically inserted scripts in a wrong order (so, the swfobject variable is undefined when used). I think there's already a bug for that, but I couldn't quickly find it.

I thought about the fact of being loaded dynamically. But the player works on other pages where it's also loaded dynamically (for example: http://www.ipamericas.org.br/conteudos/index.php/igreja-americas/mensagens-em-audio/). Could the fact of being loaded dynamically still be the cause of this bug?
Comment 3 Tony Gentilcore 2010-10-06 14:33:15 PDT
I can't reproduce this on Mac Chrome 7.0.536.2 or Mac Safari 5.0.2 (6533.18.5).

Did you implement a workaround on your site? If so, can you provide a test case that still demonstrates the problem?
Comment 4 vivianne costa 2010-10-06 15:02:01 PDT
(In reply to comment #3)
> I can't reproduce this on Mac Chrome 7.0.536.2 or Mac Safari 5.0.2 (6533.18.5).
> 
> Did you implement a workaround on your site? If so, can you provide a test case that still demonstrates the problem?

Yes. I implemented a code to do not load the audio player dynamically, since I could not find a solution. Here is the test: http://www.ipamericas.org.br/index_loads2.html

Thanks a lot
Comment 5 James Simonsen 2010-12-02 15:42:43 PST
(In reply to comment #4)
> (In reply to comment #3)
> > I can't reproduce this on Mac Chrome 7.0.536.2 or Mac Safari 5.0.2 (6533.18.5).
> > 
> > Did you implement a workaround on your site? If so, can you provide a test case that still demonstrates the problem?
> 
> Yes. I implemented a code to do not load the audio player dynamically, since I could not find a solution. Here is the test: http://www.ipamericas.org.br/index_loads2.html
> 
> Thanks a lot

There doesn't seem to be enough of the old site left to figure this out. I'd guess that no dependency was specified between swfobject and the script that used it, so we just executed them in the order that we got them, which happened to be wrong for your case.

Do you happen to remember how swfobject.js was loaded and how the user was loaded?