зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
9c3967bfed
Коммит
5c5ce99f65
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче