Boris Zbarsky wrote:
> Michael Vincent van Rantwijk, MultiZilla wrote:
>> I should have checked why 'getCodebasePrincipal' returned as 'undefined' 
> 
> You can set the "owner" to null to drop chrome privileges as well, I 
> believe.
> 
> -Boris

Thanks, I'll check that in a minute, but do I really need all this:

var loadgroup = 
Cc["@mozilla.org/network/load-group;1"].createInstance(Ci.nsILoadGroup);
var uriListener = {
   onStartURIOpen: function(aURI) { return false },
   doContent: function(ctype, preferred, aRequest, aHandler) { return 
false },
   isPreferred: function(ctype, desired) { return false },
   canHandleContent: function(ctype, preferred, desired) { return false },
   loadCookie: null,
   parentContentListener: null,
   getInterface: function(aIID) {
     if (aIID.equals(Ci.nsIURIContentListener))
       return this;
     if (aIID.equals(Ci.nsILoadGroup))
       return loadgroup;
     throw Cr.NS_ERROR_NO_INTERFACE;
   }
}
var uriLoader = Cc["@mozilla.org/uriloader;1"].getService(Ci.nsIURILoader);
uriLoader.openURI(channel, true, uriListener);

...to just _load_ the error page, or am I doing it all wrong?

-- 
Michael Vincent van Rantwijk
- MultiZilla Project Team Lead
- XUL Boot Camp Staff member (ActiveState Training Partner)
- iPhone Application Developer

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to