Bug 1522370 - Part 2: Remove the changes for bug 1493361 which accidentally crept in here while rebasing
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 25 Jan 2019 17:03:23 -0500
changeset 515545 c418bc9e3fcef85a4de1b775e73dd4d08d0bd465
parent 515544 4184be9ffd1c9cd73d1b73b279e8a3f634f1f2c5
child 515546 e3f2ecc94174c91bc2e1cabc92fe396989c278d3
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1522370, 1493361
milestone66.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 1522370 - Part 2: Remove the changes for bug 1493361 which accidentally crept in here while rebasing
toolkit/components/antitracking/AntiTrackingCommon.cpp
--- a/toolkit/components/antitracking/AntiTrackingCommon.cpp
+++ b/toolkit/components/antitracking/AntiTrackingCommon.cpp
@@ -325,22 +325,16 @@ void ReportBlockingToConsole(nsPIDOMWind
             nsCOMPtr<nsIURIFixup> urifixup = services::GetURIFixup();
             NS_ENSURE_TRUE_VOID(urifixup);
             nsCOMPtr<nsIURI> exposableURI;
             nsresult rv =
                 urifixup->CreateExposableURI(uri, getter_AddRefs(exposableURI));
             NS_ENSURE_SUCCESS_VOID(rv);
 
             NS_ConvertUTF8toUTF16 spec(exposableURI->GetSpecOrDefault());
-            bool overflows = spec.Length() > sMaxSpecLength;
-            spec.Truncate(std::min(spec.Length(), sMaxSpecLength));
-            if (overflows) {
-              NS_NAMED_LITERAL_STRING(kEllipsis, u"\x2026");
-              spec.Append(kEllipsis);
-            }
             const char16_t* params[] = {spec.get()};
 
             nsContentUtils::ReportToConsole(
                 nsIScriptError::warningFlag, category, doc,
                 nsContentUtils::eNECKO_PROPERTIES, message, params,
                 ArrayLength(params), nullptr, sourceLine, lineNumber,
                 columnNumber);
           }),