Bug 1272239 - Part 1: Support completion for test database. r=francois
MozReview-Commit-ID: 85BALQHKSal
This commit is contained in:
@@ -27,8 +27,6 @@ function log(...stuff) {
|
|||||||
dump(Services.urlFormatter.trimSensitiveURLs(msg) + "\n");
|
dump(Services.urlFormatter.trimSensitiveURLs(msg) + "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip all the ones containining "test", because we never need to ask for
|
|
||||||
// updates for them.
|
|
||||||
function getLists(prefName) {
|
function getLists(prefName) {
|
||||||
log("getLists: " + prefName);
|
log("getLists: " + prefName);
|
||||||
let pref = null;
|
let pref = null;
|
||||||
@@ -42,7 +40,6 @@ function getLists(prefName) {
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
return pref.split(",")
|
return pref.split(",")
|
||||||
.filter(function(value) { return value.indexOf("test-") == -1; })
|
|
||||||
.map(function(value) { return value.trim(); });
|
.map(function(value) { return value.trim(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1601,9 +1601,6 @@ nsUrlClassifierDBService::GetCompleter(const nsACString &tableName,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
MOZ_ASSERT(!StringBeginsWith(tableName, NS_LITERAL_CSTRING("test-")),
|
|
||||||
"We should never fetch hash completions for test tables");
|
|
||||||
|
|
||||||
// Otherwise, call gethash to find the hash completions.
|
// Otherwise, call gethash to find the hash completions.
|
||||||
return NS_SUCCEEDED(CallGetService(NS_URLCLASSIFIERHASHCOMPLETER_CONTRACTID,
|
return NS_SUCCEEDED(CallGetService(NS_URLCLASSIFIERHASHCOMPLETER_CONTRACTID,
|
||||||
completer));
|
completer));
|
||||||
|
|||||||
Reference in New Issue
Block a user