Bug 1279440 - Fix prefetch for rel=next. r=smaug
authorDragana Damjanovic dd.mozilla@gmail.com
Thu, 23 Jun 2016 08:52:00 +0200
changeset 302551 3105928e631beed69207e043090f3d23d2f802c5
parent 302550 6fcf253b671231482a64fa46d2c9ca0342894e66
child 302552 f036febe1ced34aca71bc94e9273fca4d198f061
push id30365
push userkwierso@gmail.com
push dateFri, 24 Jun 2016 20:37:17 +0000
treeherdermozilla-central@0e073f5ca38a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1279440
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1279440 - Fix prefetch for rel=next. r=smaug
dom/base/Link.cpp
--- a/dom/base/Link.cpp
+++ b/dom/base/Link.cpp
@@ -100,17 +100,17 @@ Link::TryDNSPrefetchPreconnectOrPrefetch
       (linkTypes & nsStyleLinkElement::eNEXT)){
     nsCOMPtr<nsIPrefetchService> prefetchService(do_GetService(NS_PREFETCHSERVICE_CONTRACTID));
     if (prefetchService) {
       nsCOMPtr<nsIURI> uri(GetURI());
       if (uri) {
         nsCOMPtr<nsIDOMNode> domNode = GetAsDOMNode(mElement);
         prefetchService->PrefetchURI(uri,
                                      mElement->OwnerDoc()->GetDocumentURI(),
-                                     domNode, true);
+                                     domNode, linkTypes & nsStyleLinkElement::ePREFETCH);
         return;
       }
     }
   }
 
   if (linkTypes & nsStyleLinkElement::ePRECONNECT) {
     nsCOMPtr<nsIURI> uri(GetURI());
     if (uri && mElement->OwnerDoc()) {