Bug 1371525 - Warn when sending a synchronous RemoteLogins:findRecipes message. r=Felipe

MozReview-Commit-ID: F3JnVQlFNT0

--HG--
extra : rebase_source : 7708c1e3f5bf93edcfa528cd76d75a00ce3f9452
This commit is contained in:
Matthew Noorenberghe 2017-09-01 14:59:55 -07:00
Родитель 9c3967bfed
Коммит 5c5ce99f65
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -204,6 +204,7 @@ var LoginRecipesContent = {
* @param {Set} recipes - recipes that apply to the host
*/
cacheRecipes(aHost, win, recipes) {
log.debug("cacheRecipes: for:", aHost);
let recipeMap = this._recipeCache.get(win);
if (!recipeMap) {
@ -240,6 +241,7 @@ var LoginRecipesContent = {
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIContentFrameMessageManager);
log.warn("getRecipes: falling back to a synchronous message for:", aHost);
recipes = mm.sendSyncMessage("RemoteLogins:findRecipes", { formOrigin: aHost })[0];
this.cacheRecipes(aHost, win, recipes);