> Is there some reason that the "name" attribute on nsIRequest is only
> sometimes a URI? I guess what I'm not understanding is why it's
> necessary to have channel objects supply both a name attribute and a
> URI attribute. Why not just have every nsIRequest::name be a URI and
> do away with the URI attribute on the channel?
Well not all nsIRequest have a URI. There are dns request that do not have
any concept of a URI. There are also layout request that do not have a URI to
provide. The nsIRequest is for something that is suspend-able, resume-able,
and cancel-able. This does not always have to be something that is network
related, but commonly is.
Does this help?