Running on Windows XP with Mozilla 2.0.0.4, I am experiencing a strange security issue.
Generates the error
[HTML]Error: [Exception... "'Permissio n denied to get property XMLDocument.doc umentElement' when calling method: [nsIOnReadyState ChangeHandler:: handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_J S_THREW_STRING) " location: "<unknown>" data: no][/HTML]
both locally and remotely. I don't get it. At all... I'll keep digging, but has anyone else seen this?
Code:
function loadXMLDoc(url,funcname) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); } catch (e) { alert("Permission UniversalBrowserRead denied."); } var req; // branch for native XMLHttpRequest object if (window.XMLHttpRequest) { req = new XMLHttpRequest(); // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } req.onreadystatechange = function (){ if (req.readyState==4) { if (req.status==200) { funcname(req); } } // SNIP //then in appendRSSCode (which was the function referenced in funcname) var node = req.responseXML.documentElement;
[HTML]Error: [Exception... "'Permissio n denied to get property XMLDocument.doc umentElement' when calling method: [nsIOnReadyState ChangeHandler:: handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_J S_THREW_STRING) " location: "<unknown>" data: no][/HTML]
both locally and remotely. I don't get it. At all... I'll keep digging, but has anyone else seen this?
Comment