зеркало из 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 "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
|
||||
|
|
Загрузка…
Ссылка в новой задаче