Moonchild wrote:I'm unable to confirm because Scratchpad apparently doesn't want to give me the option to run in the browser context, fnar.
Another way to test it is Firebug console, opened for example from "about:addons" tab, in Alpha2 all is ok:
Code: Select all
>>> RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService)
Object { QueryInterface=QueryInterface(), GetResource=GetResource(), GetUnicodeResource=GetUnicodeResource(), more...}
>>> lstore = Components.classes["@mozilla.org/rdf/datasource;1?name=local-store"].getService(Components.interfaces.nsIRDFDataSource)
Object { URI="rdf:local-store", QueryInterface=QueryInterface(), GetSource=GetSource(), more...}
>>> lstore.GetTarget(RDF.GetResource("chrome://browser/content/browser.xul#nav-bar"), RDF.GetResource("currentset"), true)
Object { QueryInterface=QueryInterface(), EqualsNode=EqualsNode()}
but in Beta1 is not:
Code: Select all
>>> RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService)
Object { QueryInterface=QueryInterface(), GetResource=GetResource(), GetUnicodeResource=GetUnicodeResource(), more...}
>>> lstore = Components.classes["@mozilla.org/rdf/datasource;1?name=local-store"].getService(Components.interfaces.nsIRDFDataSource)
Object { URI="rdf:local-store", QueryInterface=QueryInterface(), GetSource=GetSource(), more...}
>>> lstore.GetTarget(RDF.GetResource("chrome://browser/content/browser.xul#nav-bar"), RDF.GetResource("currentset"), true)
null