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

Google Ads not appearing in the sidebar

1 view
Skip to first unread message

Brian King

unread,
Feb 13, 2008, 9:17:46 AM2/13/08
to
I'm loading a page into the sidebar that has google ads on it:

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

Philip Chee

unread,
Feb 13, 2008, 10:30:34 AM2/13/08
to

> 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

Neil

unread,
Feb 13, 2008, 11:12:09 AM2/13/08
to
Brian King wrote:

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

Brian King

unread,
Feb 20, 2008, 4:36:21 PM2/20/08
to dev-ext...@lists.mozilla.org
On 13/02/2008 16:30 (CET), Philip Chee wrote:
>> Has anyone seen this, or can speculate why? The loading code is:
>
>> var sidebarBrowser = document.getElementById("sidebar");
>> sidebarBrowser.loadURI(aUrl);
>
> Instead of loading a http:// url directly into the sidebar try using:
> openWebPanel(aTitle, aURI) instead.

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

0 new messages