Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Accessing the contents of a browser tag

1 view
Skip to first unread message

Sam Ingrassia

unread,
Nov 13, 2009, 8:49:15 PM11/13/09
to
Thanks to everyone in advance -

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

Georg Maaß

unread,
Nov 14, 2009, 4:46:04 PM11/14/09
to

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.

John J. Barton

unread,
Nov 15, 2009, 12:19:00 AM11/15/09
to
Sam Ingrassia wrote:
> Thanks to everyone in advance -
> ...

> 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?


I guess you have to use Chromebug for XUL windows that are not Firefox.
http://getfirebug.com/wiki/index.php/Chromebug_User_Guide
jjb

0 new messages