1) actaully i seem to be getting a 'netscape is not defined' message in
my exception. bugzilla.mozilla.org/show_bug.cgi?id=35116 says that
changing prefs.js ,and then restarting firefox will give the 'netscape
is not defined' message. but i kept restarting FF . still no luck.
2)searching on the 'right' methods to apply privileges in firefox (
without signing ),i came across
http://almaer.com/blog/archives/cat_tech.html that says that :
function securePrivilege(priv) {
// insert the try/catch code from above, plus anything for the
other browsers
}
and then calling securePrivilege('UniversalBrowserRead') WILL NOT WORK
at all !... the privilege that you secure, is only applied in that
scope. This means that the priviledge is only even around INSIDE
securePrivilege(priv), and is thus useless " .... IS this true ?
2) does that mean that the FOLLOWING also will not work since its in a
if/else scope?! :
if (typeof netscape != 'undefined' && typeof netscape.security
!='undefined') {
try
{
netscape.security.PrivilegeManager.enablePrivilege ('UniversalBrowserRead');}catch(e){alert(e.message );}
}
else{ alert(e.message);}
req.open("GET", dest, true);
..
..
3) i also tried avoiding the priveleges line ,and simply depending on
appending a user_pref("signed.applets.codebase_principal_suppo rt",
true); in prefs.js . it STILL dint work .
4)most of the tutorials and guides give incomplete implementations and
just say add a line ,and presto! it shud work . does anyone have a
working example including the xmlhttprequest calls ,and WHERE EXACTLY
to call the privilege setting lines ?
Keep Clicking,
bosky