Flags are:

        protocolFlags: nsIProtocolHandler.URI_STD,

Code is:

        newURI: function(spec, charset, baseURI) {

                //Create a new URI object
                var objURI =
[EMAIL 
PROTECTED]/network/simple-uri;1].createInstance(Components.interfaces.nsIURI);

                //Use the specified uri
                if (baseURI) {
                        objURI.spec = baseURI.resolve(spec)
                } else {
                        objURI.spec = spec;
                }

                //Return the new uri
                return objURI;

        },

I also tried using "@mozilla.org/network/standard-url;1" but I kept
getting an exception trying to set the spec

Thanks

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

Reply via email to