if (mIsLoadingDocument) { FireOnStartDocumentLoad(this, uri, "load");
nsDocLoaderImpl::OnStartRequest(nsIChannel *channel, nsISupports *ctxt){    // called when the group gets its first element    nsresult rv;    nsCOMPtr<nsIURI> uri;    rv = channel->GetURI(getter_AddRefs(uri));    if (NS_FAILED(rv)) return rv;    //    // Only fire an OnStartDocumentLoad(...) if the document loader    // has initiated a load...  Otherwise, this notification has    // resulted from a channel being added to the load group.    //    if (mIsLoadingDocument) {        FireOnStartDocumentLoad(this, uri, "load"); // XXX fix command    }    return NS_OK;}