http://www.yapta.com/sidebar/ssnt/
The ads show fine in the main browser, but not in the sidebar browser.
Same result in Firefox 2 or 3. The error is:
Error: uncaught exception: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHistory.length]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
http://partner.googleadservices.com/gampad/google_ads.js :: anonymous ::
line 43" data: no]
Has anyone seen this, or can speculate why? The loading code is:
var sidebarBrowser = document.getElementById("sidebar");
sidebarBrowser.loadURI(aUrl);
- Brian
> http://www.yapta.com/sidebar/ssnt/
Instead of loading a http:// url directly into the sidebar try using:
openWebPanel(aTitle, aURI) instead.
Phil
--
Philip Chee <phi...@aleytys.pc.my>, <phili...@gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]Illiterate? Write for a free brochure!
* TagZilla 0.066.6
> Error: uncaught exception: [Exception... "Component returned failure
> code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHistory.length]" nsresult:
> "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
> http://partner.googleadservices.com/gampad/google_ads.js :: anonymous
> :: line 43" data: no]
Looks like a missing session history (in SeaMonkey the sidebar browser
constructor fires before it is ready for the session history to be
added; I don't know whether Firefox suffers from the same problem.)
--
Warning: May contain traces of nuts.
That did the job, but because of all the dependent code I have in my
sidebar implementation, it opened up a whole can of worms.
So I ended up putting a XUL file in the sidebar with another browser,
and loading the pages into that browser. Similar to the web panels
approach, but with more fine grained control.
- Brian