[Mono-bugs] [Bug 338220] Sometimes ff might execute js before the plugin has been initialized

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 31 13:59:31 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=338220#c1





--- Comment #1 from Rolf Bjarne Kvinge <rkvinge at novell.com>  2007-10-31 11:59:30 MST ---
IRC log:

<rolf_> I can repro about 1/3 of the time I try 
<toshok> wow.. that shouldn't happen.  yuck.
<jackson> hmm, i might have comitted something accidently that does that
<jackson> ok, no i didn't
<rolf_> toshok, https://bugzilla.novell.com/show_bug.cgi?id=338220
<rolf_> we (1) initialize the plugin, (2) request a download of the xaml file,
and when it's been downloaded we (3) load it
<rolf_> in this case ff executes js inbetween 2 and 3
<jackson> we do need to make sure that we don't initialize the plugin too late,
because if there are errors parsing we need to notify the plugin
<toshok> we don't have any control over when we initialize the plugin though.. 
ff drives that, no?
<rolf_> the problem is that when we request the xaml file, it's done async
<shana> hmmm
<toshok> right, but (1) happens before (2), right?
<shana> rolf_: that might happen due to the extra time of things going through
gluezilla
<toshok> I mean, ff queries us for our scriptable interface when some JS gets
executed
<rolf_> yes, (1) is the PluginInstance ctor and PluginInstance::Initialize
<shana> it's also blowing up sometimes on clock.cpp:1113
<toshok> PluginInstance::GetValue
<rolf_> which is done before control is returned to ff
<rolf_> shana, except that I don't have gluezilla :)
<rolf_> it might make it happen more often though
<shana> rolf_: yeah, that's why I can always make it blow up :)
<rolf_> did you try any other website?
<toshok> I'm having a hard time understanding how there's any race involved
<toshok> I think the bug is someplace else
<shana> rolf_: gimme more sites :)
<rolf_> (1) plugin created (2) plugin requests download of xaml (3) firefox
executes js (4) plugin accesses surface->TopLevel, which hasn't been loaded,
since the xaml hasn't been downloaded yet
<toshok> ahhh, okay - by "plugin initialization" I thought you meant there was
some race in creation of the JS objects, which there couldn't be
<rolf_> yes, my wording was somewhat confusing


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list