Philip Chee wrote:

Interesting stuff. If I put a dump statement in the js just before the call I get: [object 
chromeWindow]. This is probably because the xSidebar sidebar has an element: <browser 
id="sidebar">.
D'oh!

The nsSidebar constructor uses:
 this.datasource = this.rdf.GetDataSource(this.datasource_uri);

But GetDataSource returns asynchronously so this line should be:
 this.datasource = this.rdf.GetDataSourceBlocking(this.datasource_uri);

By the way the customise.js from the customize panel dialog box also has the 
same error. Should I file a bug or two?

One bug will suffice, thanks. Actually, I don't think it's an issue for customize.js because you can only open it from the sidebar tabs menu, which requires the sidebar data source to have already loaded.
_______________________________________________
Project_owners mailing list
Project_owners@mozdev.org
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to