Dear mozilla.dev.builds:

Recently I have been doing some experimentation with a private build of Firefox 
running on my Ubuntu 19.10. However I seem to have hit a bit of a stumbling 
block while I am trying to hack the Init method of the HttpBaseChannel class 
(mozilla-unified/netwerk/protocol/http).

The Init method is passed the parameter nsIURI* aURI, which is then assigned to 
both mURI and mOriginalURI. Consulting with the Mozilla interface documentation 
I've learned about nsIURI's "host" and "asciiHost" attributes. However, I do 
not seem to be able to modify these attributes as they seem to be read-only. I 
attempted to use "SetHost" or "SetAsciiHost" but these do not seem to exist. 
(The "GetAsciiHost" on the other hand does exist).

So I attempted to construct a new nsIURI object from right within the Init 
code, however, repeated attempts to construct a new nsIURI object are met with 
compiler errors about attempting to initialize an abstract class.

I am at my wit's end and so have come to this newsgroup for some help from you. 
If this is not the most appropriate newsgroup please let me know what would be 
an appropriate newsgroup for me to make this post.

Many thanks for all your help.

Alex
_______________________________________________
dev-builds mailing list
dev-builds@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to