I have a xul window that I am loading via firefox for testing that has
a browser tag inside of it. When I do something like:
alert(document.getElementById
("mybrowser").contentDocument.getElementsByTagName("title")[0]);
I get a security permission error "Error: uncaught exception:
Permission denied to create wrapper for object of class UnnamedClass"
I have firebug and proceeded to try and track down via the dom dump
another access point to the document loaded inside of the browser tag,
but was unsuccessful - any suggestions?
Thanks,
Sam
Is your XUL window loaded via chrome URL? If you are using a file URL
for the XUL window change to chrome URL. You also may check the type
attribute. I use value "content-primary" for it, I access any content
inside my browser element i.e to update the navigation elements in the
windows toolbar controlled by the link elements inside the content of
the browser element. I use Xulrunner, but there should be no difference
to FF.
I guess you have to use Chromebug for XUL windows that are not Firefox.
http://getfirebug.com/wiki/index.php/Chromebug_User_Guide
jjb