mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
temporary hack to fix mac bustage... will return with the real fix.
This commit is contained in:
parent
4020f8bd33
commit
4839e4f7e2
@ -101,7 +101,9 @@
|
||||
#include "nsICharsetAlias.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIHttpChannel.h"
|
||||
#ifndef XP_MAC
|
||||
#include "nsCPrefetchService.h"
|
||||
#endif
|
||||
|
||||
#include "nsIWebShell.h"
|
||||
#include "nsIDocShell.h"
|
||||
@ -4431,6 +4433,7 @@ HTMLContentSink::ProcessStyleLink(nsIHTMLContent* aElement,
|
||||
void
|
||||
HTMLContentSink::ProcessNextLink(const nsAString &aHref)
|
||||
{
|
||||
#ifndef XP_MAC
|
||||
nsCOMPtr<nsIPrefetchService> prefetchService(
|
||||
do_GetService(NS_PREFETCHSERVICE_CONTRACTID));
|
||||
if (prefetchService) {
|
||||
@ -4445,6 +4448,7 @@ HTMLContentSink::ProcessNextLink(const nsAString &aHref)
|
||||
if (uri)
|
||||
prefetchService->PrefetchURI(uri);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
Loading…
Reference in New Issue
Block a user