Bug 110760 - directory listings shouldn't reuly on libappcomps.
Also fixes bug 102826 & related issues. r=dougt, sr=darin
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user