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

Also fixes bug 102826 & related issues.
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@114994 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bbaetz%student.usyd.edu.au
2002-02-20 02:14:17 +00:00
parent df549a9260
commit bb2690755b
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.
//