temporary hack to fix mac bustage... will return with the real fix.

This commit is contained in:
darin%netscape.com 2002-09-11 04:32:38 +00:00
parent 4020f8bd33
commit 4839e4f7e2

View File

@ -101,7 +101,9 @@
#include "nsICharsetAlias.h" #include "nsICharsetAlias.h"
#include "nsIChannel.h" #include "nsIChannel.h"
#include "nsIHttpChannel.h" #include "nsIHttpChannel.h"
#ifndef XP_MAC
#include "nsCPrefetchService.h" #include "nsCPrefetchService.h"
#endif
#include "nsIWebShell.h" #include "nsIWebShell.h"
#include "nsIDocShell.h" #include "nsIDocShell.h"
@ -4431,6 +4433,7 @@ HTMLContentSink::ProcessStyleLink(nsIHTMLContent* aElement,
void void
HTMLContentSink::ProcessNextLink(const nsAString &aHref) HTMLContentSink::ProcessNextLink(const nsAString &aHref)
{ {
#ifndef XP_MAC
nsCOMPtr<nsIPrefetchService> prefetchService( nsCOMPtr<nsIPrefetchService> prefetchService(
do_GetService(NS_PREFETCHSERVICE_CONTRACTID)); do_GetService(NS_PREFETCHSERVICE_CONTRACTID));
if (prefetchService) { if (prefetchService) {
@ -4445,6 +4448,7 @@ HTMLContentSink::ProcessNextLink(const nsAString &aHref)
if (uri) if (uri)
prefetchService->PrefetchURI(uri); prefetchService->PrefetchURI(uri);
} }
#endif
} }
nsresult nsresult