[Webkit-unassigned] [Bug 29142] timing issue with calling the InjectedScript stuff early

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 11 07:55:42 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29142





--- Comment #3 from Patrick Mueller <pmuellr at yahoo.com>  2009-09-11 07:55:41 PDT ---
I figured the <src script=> order didn't matter, having this keyed off of on
onload handler makes more sense.  Still a problem - how can I properly hook
this?  Even if there is a guaranteed dispatch order (order of registration) for
event handler), I would need to register AFTER yours.  No way for me to know
that.

I think you need to add an event ala the WI.Object event dispatch stuff to let
us know when it's safe to call this stuff.  It would make it much clearer
anyway.  

Rather that subclass that class, I'd likely just create an eventManager object
as an instance of that class, and write cover methods that invoked the Object
methods.

w/r/t what happened; I didn't debug into it.  I made the call, but never got
the callback.  Later execution of the same code (after load, presumably),
callback gets invoked fine.  Whether or not the code I requested be run - just
an eval to get the value of the watch expression, dunno.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list