Bug 1450538 - Use nsIURI::GetDisplaySpec to compensate a change to nsIURI::GetSpec. r=valentin draft
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Sat, 14 Apr 2018 10:29:36 +0900
changeset 782161 963a823ca4164e0beec157838853ea541dfbdc4e
parent 782160 599e4be5f3bcf0c6ea71db49d4cbcdf05ad0c7df
child 782162 c1e7fa69c190b3ca141c5a42b2aab2cc9022318f
child 782373 381a9c092bdfc1209d0d075a327bdfb7a02295b3
push id106487
push userVYV03354@nifty.ne.jp
push dateSat, 14 Apr 2018 12:37:23 +0000
reviewersvalentin
bugs1450538
milestone61.0a1
Bug 1450538 - Use nsIURI::GetDisplaySpec to compensate a change to nsIURI::GetSpec. r=valentin MozReview-Commit-ID: 5xYAbx78K3q
docshell/base/nsDocShell.cpp
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -13664,17 +13664,17 @@ nsDocShell::OnOverLink(nsIContent* aCont
   if (!browserChrome2) {
     browserChrome = do_GetInterface(mTreeOwner);
     if (!browserChrome) {
       return rv;
     }
   }
 
   nsAutoCString spec;
-  rv = aURI->GetSpec(spec);
+  rv = aURI->GetDisplaySpec(spec);
   NS_ENSURE_SUCCESS(rv, rv);
 
   NS_ConvertUTF8toUTF16 uStr(spec);
 
   mozilla::net::PredictorPredict(aURI, mCurrentURI,
                                  nsINetworkPredictor::PREDICT_LINK,
                                  aContent->NodePrincipal()->OriginAttributesRef(),
                                  nullptr);