Bug 1636348 - Ensure the connection between the about:devtools-toolbox's client and server is closed. r=jdescottes

The `browser_aboutdebugging_navigate_to_url.js` test times out if we don't wait for the about:devtools-toolbox tab to be removed as a target from about:debugging.

Differential Revision: https://phabricator.services.mozilla.com/D74467
This commit is contained in:
Micah Tigley 2020-05-11 13:59:27 +00:00
Родитель 9ae7056be4
Коммит 0ffb21c838
1 изменённых файлов: 6 добавлений и 6 удалений

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

@ -40,14 +40,14 @@ add_task(async function() {
ok(toolbox.target.title.includes(NEW_TAB_TITLE), "Target's title updated.");
is(urlInput.value, NEW_TAB_URL, "Input url updated.");
info("Remove the about:debugging tab.");
await removeTab(tab);
info("Remove the about:devtools-toolbox tab.");
await removeTab(devtoolsTab);
info("Remove the background tab");
await removeTab(debug_tab);
await waitUntil(() => !findDebugTargetByText("NEW_TAB_TITLE", document));
await closeAboutDevtoolsToolbox(document, devtoolsTab, window);
info("Remove the about:debugging tab.");
await removeTab(tab);
});
/**