diff --git a/mozilla/xpcom/sample/xpconnect-sample.html b/mozilla/xpcom/sample/xpconnect-sample.html index 46796c4658b..9309c725569 100644 --- a/mozilla/xpcom/sample/xpconnect-sample.html +++ b/mozilla/xpcom/sample/xpconnect-sample.html @@ -10,6 +10,14 @@ Last modified Aug 4, 1999
+NOTE: The example on this page currently won't work out of the box, because +access to arbitrary XPConnect components through Components +object is disabled for web-page JavaScript. When we get our security +story straightened out, we'll restore most access. For now, you can get around +it by finding 'pref("security.checkxpconnect", true);' in the +preferences file (all.js) and setting it to false. +
+

In the spirit of "worse is better" this somewhat rough guide is being released to the world. It will be expanded upon and improved. @@ -115,7 +123,7 @@ printed is calculated in C++ code defined in <script> /* to use nsSample.js version, use "mozilla.jssample.1" */ -var sample = Components.classes["component://mozilla/sample/sample-world"].createInstance(); +var sample = Components.classes["component://netscape/sample"].createInstance(); sample = sample.QueryInterface(Components.interfaces.nsISample); dump("sample = " + sample + "\n");