Bug 110760 - directory listings shouldn't reuly on libappcomps.

Also fixes bug 102826 & related issues.
r=dougt, sr=darin
This commit is contained in:
bbaetz@student.usyd.edu.au
2002-02-20 02:14:17 +00:00
parent 9d82e02b4a
commit c11d6a1f7d
19 changed files with 342 additions and 47 deletions

View File

@@ -78,6 +78,7 @@
#include "nsIPrincipal.h"
#include "nsIHistoryEntry.h"
#include "nsISHistoryListener.h"
#include "nsIDirectoryListing.h"
// Editor-related
#include "nsIEditingSession.h"
@@ -4618,6 +4619,11 @@ nsresult nsDocShell::DoURILoad(nsIURI * aURI,
httpChannel->SetReferrer(aReferrerURI,
nsIHttpChannel::REFERRER_LINK_CLICK);
}
// We want to use the pref for directory listings
nsCOMPtr<nsIDirectoryListing> dirList = do_QueryInterface(channel);
if (dirList) {
(void)dirList->SetListFormat(nsIDirectoryListing::FORMAT_PREF);
}
//
// Set the owner of the channel - only for javascript and data channels.
//