Bug 1651265 - Ensure DiscoveryStreamFeed exists before trying to access it in browser_no_startup_actions.js to fix an intermittent orange. r=emalysz

Differential Revision: https://phabricator.services.mozilla.com/D83955
This commit is contained in:
Mike Conley 2020-07-21 17:23:04 +00:00
parent 2046699f13
commit 3d8ed5dd22

View File

@ -45,7 +45,7 @@ add_task(async function test_no_startup_actions() {
let feed = AboutNewTab.activityStream.store.feeds.get(
"feeds.discoverystreamfeed"
);
return feed.loaded;
return feed?.loaded;
});
// Wait an additional few seconds for any other actions to get displayed.