Bug 1721217 - Part 11: Fix a race between two parent-initiated loads, r=nika

Wait for the previous load to complete as sometimes the first load takes longer
to start and races with the latter about:mozilla one. A follow up bug has been
filed to address this issue - Bug 1742886.

Differential Revision: https://phabricator.services.mozilla.com/D131263
This commit is contained in:
Anny Gakhokidze 2021-12-16 22:27:19 +00:00
Родитель 07d7221e72
Коммит d1349f3ee0
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -142,6 +142,8 @@ add_task(async function test_navigation() {
// Navigate from remote to non-remote
gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, TEST_PAGE);
// Wait for the non-blank page to finish loading
await BrowserTestUtils.browserStopped(gBrowser, TEST_PAGE);
testURI = "about:mozilla";
permanentKey = gBrowser.selectedBrowser.permanentKey;
await waitForLoad(testURI);