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

loadURI stops working in xulrunner

22 views
Skip to first unread message

Susan Crayne

unread,
Dec 4, 2009, 5:20:31 PM12/4/09
to
I am converting an add-on to a xulrunner app. The xulrunner version is
1.9.1.4. The browser element is defined like this:

<browser id="glider-hidden-browser" collapsed="true" />

This is the code:

var browser = document.getElementById("glider-hidden-browser");
var url = "hello";
browser.loadURI(url);

The last line produces this error message:

ERROR: onDrop: [Exception... "Component returned failure code: 0x8000ffff
(NS_ERROR_UNEXPECTED) [nsIContainerBoxObject.docShell]" nsresult:
"0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame ::
chrome://global/content/bindings/browser.xml :: get_docShell :: line 0"
data: no]

When the code was packaged as an xpi, this worked well, but it stopped
working in xulrunner. Any advice would be appreciated.

Susan

pat

unread,
Dec 10, 2009, 11:16:27 PM12/10/09
to

I'm not familiar with the browser element but here are a few guesses,
is the app fully loaded? have you tried it with a valid url? do you
need to alter the collapsed property before loading the url?
that's all i've got.
pat

0 new messages