Re: RemoveDatasource from nsIRDFCompositeDataSource

harry <[email protected]> Wed, 12 Oct 2005 19:40:48 +0200
Newsgroups gmane.comp.mozilla.devel.rdf
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Eric Jeunieaux wrote:
> I try to remove the datasources from a  nsIRDFCompositeDataSource using 
> the function  myCompositeDatasource.RemoveDataSource(aDtsr).
> My javascript doen't run if  the datasource to remove is the 
> rdf:local-store.
> 
> Can anyone explain me why ?
> 

Probably this issue is related to this:

An additional difference between privileged and unprivileged code is 
that for privileged code, the datasource rdf:local-store is always 
included in the list of the datasources regardless of whether it was 
specified or not. This datasource is normally used to hold various bits 
of state information such as window sizes, which toolbars are showing, 
tree column sizes, and so forth. This means that the database in the 
example above will actually have three datasources, the first being the 
local store, the second is the bookmarks and the third is the 
animals.rdf file. Unprivileged code running on a remote web site does 
not include this datasource, since it contains user information.

from http://www.xulplanet.com/tutorials/mozsdk/rdfsources.php