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:
DimiL 2017-12-19 09:46:28 +08:00
parent 3361602026
commit 1888227294
2 changed files with 1 additions and 3 deletions

View file

@ -1117,7 +1117,7 @@ BrowserGlue.prototype = {
// Login reputation depends on the Safe Browsing API. // Login reputation depends on the Safe Browsing API.
let reputationService = Cc["@mozilla.org/reputationservice/login-reputation-service;1"] let reputationService = Cc["@mozilla.org/reputationservice/login-reputation-service;1"]
.getService(Ci.ILoginReputationService); .getService(Ci.nsILoginReputationService);
reputationService.init(); reputationService.init();
}, 5000); }, 5000);

View file

@ -907,8 +907,6 @@ nsFormFillController::StartQueryLoginReputation(nsIDOMHTMLInputElement *aInput)
if (NS_WARN_IF(!mLoginReputationService)) { if (NS_WARN_IF(!mLoginReputationService)) {
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
} }
mLoginReputationService->Init();
} }
mLoginReputationService->QueryReputationAsync(aInput, nullptr); mLoginReputationService->QueryReputationAsync(aInput, nullptr);