forked from mirrors/gecko-dev
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:
parent
3361602026
commit
1888227294
2 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue