Bug 1603012 - Fix intermittent failure on browser_console_context_menu_entries. r=Honza.

The error message isn't really explicit, but wrapping the call
to toggleBrowserConsole in a try/catch block seems to remove
the test failure.

Differential Revision: https://phabricator.services.mozilla.com/D59657

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicolas Chevobbe 2020-01-14 09:17:21 +00:00
Родитель cf8c71f680
Коммит 597ca0a67b
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -114,7 +114,11 @@ add_task(async function() {
await hideContextMenu(hud);
// Close the browser console.
try {
await BrowserConsoleManager.toggleBrowserConsole();
} catch (e) {
console.warn("Error when closing Browser Console", e);
}
});
function addPrefBasedEntries(expectedEntries) {