[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-45.2.0esr-6.5-1] Revert "Bug 16998: Disable link rel=preconnect"



commit b44b2b25bab1ebde9351c842f0ca66d2fdc87579
Author: Arthur Edelstein <arthuredelstein@xxxxxxxxx>
Date:   Mon Jun 6 01:05:25 2016 -0700

    Revert "Bug 16998: Disable link rel=preconnect"
    
    This reverts commit bba50a31b7c41ec4c74475ba083d23828fea8918.
---
 dom/base/nsDocument.cpp | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp
index ef6dc64..586e199 100644
--- a/dom/base/nsDocument.cpp
+++ b/dom/base/nsDocument.cpp
@@ -9704,10 +9704,6 @@ nsDocument::MaybePreLoadImage(nsIURI* uri, const nsAString &aCrossOriginAttr,
 void
 nsDocument::MaybePreconnect(nsIURI* aOrigURI, mozilla::CORSMode aCORSMode)
 {
-  // Tor Browser: Here we disable <link rel="preconnect">
-  // See #16998.
-  // TODO: Isolate preconnect by first party.
-/*
   nsCOMPtr<nsIURI> uri;
   if (NS_FAILED(aOrigURI->Clone(getter_AddRefs(uri)))) {
       return;
@@ -9742,7 +9738,6 @@ nsDocument::MaybePreconnect(nsIURI* aOrigURI, mozilla::CORSMode aCORSMode)
   } else {
     speculator->SpeculativeConnect(uri, nullptr);
   }
-*/
 }
 
 void



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits