nsIDOMXULCommandDispatcher GetFocusedWindow() giving wrong window in case of Applet is in focus in firefox 3
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <4ad8a1ef-a906-44b2-a4e4-367f65d49096@x31g2000prc.googlegroups.com> |
I am using following to get document window from browser xul window. It is giving document window correct except in case of applet inside browser and applet has focus. 1)I am calling GetDocument() on browser xul window. I get nsIdomDocument. 2)Query_interface this domdocument to nsIDOMXULDocument. xulDoc 3)then xulDoc->GetCommandDispatcher(), I get nsIDOMXULCommandDispatcher. Then use GetFocusedWindow() on it to get document window. This is failing incase of applet inside browser in firefox3. Please let me know is there any way that I can overcome this issue. Please provide me any work around for this.