Hi,

I keep getting a weird error when I use a perfectly valid call to:

window.openDialog(...);

The new window opens correctly, and everything works well in it, but the following error:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIDOMWindowInternal.focus]"  nsresult: "0x80004005
(NS_ERROR_FAILURE)"  location: "JS frame ::
chrome://[somefile/path].js :: anonymous :: line [a line number]"  data: no]

is thrown on the JS console *after* I close the newly opened window!
All I can think of is that the focus has somehow changed, but so what?

A simple try/catch works, but I would rather understand why it fails,
because that might help me to get rid of the try/catch all together one day.

How do I fix this or work around this problem, without using try/catch?

Thanks you for your help,
Michael.
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to