зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1425625 - Fix getting reputation service with wrong interface name. r=francois
Fix get service with wrong interface name and a double init issue. MozReview-Commit-ID: BA0wex06eWb --HG-- extra : rebase_source : 0e32128c470ec9d116840a372ab0893d476aa543
This commit is contained in:
Родитель
3361602026
Коммит
1888227294
|
@ -1117,7 +1117,7 @@ BrowserGlue.prototype = {
|
|||
|
||||
// Login reputation depends on the Safe Browsing API.
|
||||
let reputationService = Cc["@mozilla.org/reputationservice/login-reputation-service;1"]
|
||||
.getService(Ci.ILoginReputationService);
|
||||
.getService(Ci.nsILoginReputationService);
|
||||
reputationService.init();
|
||||
}, 5000);
|
||||
|
||||
|
|
|
@ -907,8 +907,6 @@ nsFormFillController::StartQueryLoginReputation(nsIDOMHTMLInputElement *aInput)
|
|||
if (NS_WARN_IF(!mLoginReputationService)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
mLoginReputationService->Init();
|
||||
}
|
||||
|
||||
mLoginReputationService->QueryReputationAsync(aInput, nullptr);
|
||||
|
|
Загрузка…
Ссылка в новой задаче