Bug 1466940 - Add logging of tabs in TPS to assist with investigating test failures; r=tcsc

MozReview-Commit-ID: AW7RrtglYEN

--HG--
extra : rebase_source : e94d17d05943613ac08d684ad5ea2e5afeef054c
This commit is contained in:
Dave Hunt 2018-06-05 21:49:59 +01:00
Родитель 0f77e7b850
Коммит 16d53b6538
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -12,6 +12,7 @@ const EXPORTED_SYMBOLS = ["BrowserTabs"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://services-sync/main.js");
ChromeUtils.import("resource:///modules/sessionstore/TabStateFlusher.jsm");
ChromeUtils.import("resource://tps/logger.jsm");
// Unfortunately, due to where TPS is run, we can't directly reuse the logic from
// BrowserTestUtils.jsm. Moreover, we can't resolve the URI it loads the content
@ -80,8 +81,9 @@ var BrowserTabs = {
if (uri == weaveTabUrl && profile == client.clientName)
if (title == undefined || title == tab.title)
return true;
}
Logger.logInfo(`Dumping tabs for ${client.clientName}...\n` + JSON.stringify(client.tabs));
}
}
return false;
},
};