summaryrefslogtreecommitdiffstats
path: root/toolkit/components/antitracking/URLDecorationStripper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/antitracking/URLDecorationStripper.cpp')
-rw-r--r--toolkit/components/antitracking/URLDecorationStripper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/components/antitracking/URLDecorationStripper.cpp b/toolkit/components/antitracking/URLDecorationStripper.cpp
index 38af391945..fc94fe8ed5 100644
--- a/toolkit/components/antitracking/URLDecorationStripper.cpp
+++ b/toolkit/components/antitracking/URLDecorationStripper.cpp
@@ -22,8 +22,8 @@ namespace mozilla {
nsresult URLDecorationStripper::StripTrackingIdentifiers(nsIURI* aURI,
nsACString& aOutSpec) {
- nsAutoString tokenList;
- nsresult rv = Preferences::GetString(kPrefName, tokenList);
+ nsAutoCString tokenList;
+ nsresult rv = Preferences::GetCString(kPrefName, tokenList);
ToLowerCase(tokenList);
nsAutoCString path;
@@ -34,12 +34,12 @@ nsresult URLDecorationStripper::StripTrackingIdentifiers(nsIURI* aURI,
int32_t queryBegins = path.FindChar('?');
// Only positive values are valid since the path must begin with a '/'.
if (queryBegins > 0) {
- for (const nsAString& token : tokenList.Split(' ')) {
+ for (const nsACString& token : tokenList.Split(' ')) {
if (token.IsEmpty()) {
continue;
}
- nsAutoString value;
+ nsAutoCString value;
if (URLParams::Extract(Substring(path, queryBegins + 1), token, value) &&
!value.IsVoid()) {
// Tracking identifier found in the URL!