Fixes to the xpcom sample. This code does not go into the Mozilla product.
- Update progid mentioned in the .html file to that actually used in the code. - Remove outdated nsSampleFactory.cpp so nobody gets confused, but add note to nsSampleModule.cpp in its memory, as it had extensive comments. git-svn-id: svn://10.0.0.236/trunk@70576 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -33,7 +33,7 @@ the <a href="http://lxr.mozilla.org/seamonkey/source/xpcom/sample/nsISample.idl"
|
||||
<br>
|
||||
<pre>
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var sample = Components.classes["component://mozilla/sample/sample-world"].createInstance();
|
||||
var sample = Components.classes["component://netscape/sample"].createInstance();
|
||||
sample = sample.QueryInterface(Components.interfaces.nsISample);
|
||||
</pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user