зеркало из https://github.com/mozilla/pjs.git
temporary hack to fix mac bustage... will return with the real fix.
This commit is contained in:
Родитель
ecf8064fd4
Коммит
9ba0bbeba0
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче