OnLoad Callbacks not getting called

54 views
Skip to first unread message

Umesh Chandak

unread,
Apr 16, 2013, 9:57:12 AM4/16/13
to firebre...@googlegroups.com
Hi,
We are facing weird problem on Mac Safari. We have multiple mimetypes in a plugin.
We create 5 plugins of mimetype in a html UI. 4 plugin is of same mimetype and 1 plugin is of different mimetype.

But out of these only 3 plugins getting created successfully and calling params onload callback function.

Wierd thing is this is happening only on some specific machines and not all.

Also it works on affected machine if some system event happens like mouse click on html page.
All remaining plugins get created and call callbacks in UI as soon as mouse is clicked on the html page.

This is happening only on Mac.

Any help will be much appreciated.

Thanks.
Regards,
Umesh.

Neil Griffiths

unread,
Apr 17, 2013, 3:27:38 PM4/17/13
to firebre...@googlegroups.com
My guess is that you're loading dylibs from your plugin and those dylibs aren't in the right place on the machines where it isn't working.

Neil


--
 
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Umesh Chandak

unread,
Apr 18, 2013, 12:22:13 PM4/18/13
to firebre...@googlegroups.com
You are right in a way that our plugin uses dylibs. But why mouse clicking on browser makes it suddenly work ?

Also I used tool -L on mac to find if all libs are getting resolved correctly and it resolves all libraries correctly.

Thanks.
Regards,
Umesh.

Neil Griffiths

unread,
Apr 18, 2013, 1:37:29 PM4/18/13
to firebre...@googlegroups.com
Sorry, I missed the part where you said that it worked if the mouse was clicked on the page. What's the HTML you use to insert the plugin object into the DOM? Where in the DOM is your plugin object? Hidden away inside a DIV?

Umesh Chandak

unread,
Apr 19, 2013, 5:09:56 AM4/19/13
to firebre...@googlegroups.com
We initially create a place holder for plugins in HTML and then dynamically insert plugins into DOM. Plugins are not hidden.

Thanks.
Regards,
Umesh.

Richard Bateman

unread,
Apr 19, 2013, 10:11:58 AM4/19/13
to firebre...@googlegroups.com

Do you insert it by creating the element wtih js and then .appendNode or are you inserting it by setting .innerHTML? If the element is created before being inserted into the page you need to not set the mimetype until it is in the page or something like this could occur.

Richard

Umesh Chandak

unread,
Apr 19, 2013, 1:47:26 PM4/19/13
to firebre...@googlegroups.com
We use appendNode and not innerHTML. But at the same time we set mimetype after it is inserted in DOM.

Thanks.
Regards,
Umesh.
Reply all
Reply to author
Forward
0 new messages