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

[tor-commits] [tor-browser/tor-browser-31.6.0esr-4.5-1] fixup! Bug #5742: API allows you to get the url bar URI for a channel or nsIDocument.



commit bc811be8123e800330a0a39805646169bd61b5f5
Author: Mike Perry <mikeperry-git@xxxxxxxxxxxxxx>
Date:   Thu May 7 13:13:13 2015 -0700

    fixup! Bug #5742: API allows you to get the url bar URI for a channel or nsIDocument.
    
    Bug 15933: Isolate by base (top-level) domain name instead of FQDN.
    
    TLD isolation is needed for file hosting sites, and sites with lots of
    subdomains.
---
 content/base/src/ThirdPartyUtil.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/base/src/ThirdPartyUtil.cpp b/content/base/src/ThirdPartyUtil.cpp
index 0e037d1..8d76022 100644
--- a/content/base/src/ThirdPartyUtil.cpp
+++ b/content/base/src/ThirdPartyUtil.cpp
@@ -601,7 +601,7 @@ ThirdPartyUtil::GetFirstPartyHostForIsolation(nsIURI *aFirstPartyURI,
     return NS_ERROR_INVALID_ARG;
 
   if (!SchemeIsWhiteListed(aFirstPartyURI)) {
-    nsresult rv = aFirstPartyURI->GetHost(aHost);
+    nsresult rv = GetBaseDomain(aFirstPartyURI, aHost);
     return (aHost.Length() > 0) ? NS_OK : rv;
   }
 



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