Bug 1865372 Part 2: Update test timings. r=fxview-reviewers,sfoster
commit3eb44baf8394dbc5b56efdd28b72555751d3d3e1
authorBrad Werth <bwerth@mozilla.com>
Tue, 30 Jan 2024 18:07:40 +0000 (30 18:07 +0000)
committerBrad Werth <bwerth@mozilla.com>
Tue, 30 Jan 2024 18:07:40 +0000 (30 18:07 +0000)
tree2fe6e0b0a59bdda2252ca19de94d6ba681aab4b1
parent477a5e068521556abf914ff54de6229f2f66cb16
Bug 1865372 Part 2: Update test timings. r=fxview-reviewers,sfoster

This changes browser_opentabs_recency.js to check for window occlusion
before calling window.restore, and if waiting for the
occlusionstatechange event, waiting an extra event loop to ensure that
all the listeners have fired. This is necessary to ensure that the
browsing context has become active, which is the next check in the
helper function.

Differential Revision: https://phabricator.services.mozilla.com/D199647
browser/components/firefoxview/tests/browser/browser_opentabs_recency.js