Boris Zbarsky wrote:
Niky Williams wrote:
Well as soon as nsIProxyObjectManager::GetProxyForObject () executes,
I get those assertions.
Right. Creating a proxy has to touch the object itself....
The right way to do this is to create the proxy on the main thread, then
pass it to whatever code will want to call into it off-thread.
-Boris
Boris,
Okay, that makes sense. Here is my problem though, one of my functions
is "SetElementInnerHTML (nsString sID, nsString sValue)" and it doesn't
know the ID of the element until I call that function...which
coincidentally is sometimes called in that foreign thread. So I can't
make a proxy of that element because I don't know the ID of it yet...I
do have proxies of my WebBrowser, DOMWindow and DOMDocument..did that
when the page finished loading..seems to work well. Soooo..the question
is..how is one supposed to proxy a DOM Element in the correct spot when
you don't know who the element is until you are in that foreign thread?
Make a dynamic array of proxied elements of all the elements on that
page when the page loads..refreshing with each load? Thanks again for
your time!
Niky Williams
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding