667
edits
Changes
m
→Accessing FirstXpcom from the JavaScript Shell
var obj = Components.classes[cid].createInstance()
* Next, take the the nsISupports object returned above and query it (i.e., see if it supports your interface type and if so, change it to that interface) to IFirstXpcom, often referred to as QI (e.g., ''"...you need to QI it to IFirstXpcom..."'').
obj = obj.QueryInterface(Components.interfaces.IFirstXpcom)