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

[tor-commits] [tor-browser/tor-browser-45.0.2esr-6.x-1] Bug 16998: Disable link rel=preconnect



commit e4606f2da9c79fec5f1f8cda10869063e640af9e
Author: Arthur Edelstein <arthuredelstein@xxxxxxxxx>
Date:   Fri Apr 22 14:39:14 2016 -0700

    Bug 16998: Disable link rel=preconnect
---
 dom/base/nsDocument.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp
index a4181ef..719c274 100644
--- a/dom/base/nsDocument.cpp
+++ b/dom/base/nsDocument.cpp
@@ -9704,6 +9704,10 @@ 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;
@@ -9738,6 +9742,7 @@ 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