Christian Biesinger wrote:
Frederik Vanderstraeten wrote:
The real solution is to use nsIProxyObjectManager
Yeah... don't call JS in overlays from a background thread.
Or is that even a web page (since you are calling enablePrivilege)? Same
applies if so.
A comment on your C++ code though:
observerService->NotifyObservers(NULL, "JHandlerCallback",
(PRUnichar*)"test");
You can't cast a normal C++ string to a PRUnichar*. It will produce the
wrong results. You need to pass a UTF-16 string here. On Windows
compilers, that can be done with L"test" rather than "test".
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom