Bug 1678829 fix permafail due to pref change during render of about:preferences r=preferences-reviewers,ntim

Differential Revision: https://phabricator.services.mozilla.com/D99948
This commit is contained in:
Shane Caraveo 2020-12-16 22:37:03 +00:00
Родитель ab23e18c10
Коммит a07332c458
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -13,8 +13,6 @@ add_task(async function() {
* Test for searching for the "Set Home Page" subdialog.
*/
add_task(async function() {
await openPreferencesViaOpenPreferencesAPI("paneHome", { leaveOpen: true });
// Set custom URL so bookmark button will be shown on the page (otherwise it is hidden)
await SpecialPowers.pushPrefEnv({
set: [
@ -23,6 +21,8 @@ add_task(async function() {
],
});
await openPreferencesViaOpenPreferencesAPI("paneHome", { leaveOpen: true });
// Wait for Activity Stream to add its panels
await BrowserTestUtils.waitForCondition(() =>
SpecialPowers.spawn(